[plt-scheme] how to print to STDERR and /dev/null?

From: Daniel Yoo (dyoo at cs.wpi.edu)
Date: Thu Mar 29 10:25:04 EDT 2007

On Wed, 28 Mar 2007, mainargv at gmail.com wrote:

> how to print to STDERR and /dev/null? I need both ports, thanks.

I'm not sure what you mean by printing to /dev/null.  Can you explain more 
about this?  I thought that /dev/null was a black hole, so that printing 
to it was ineffective.  Perhaps you're looking for OPEN-OUTPUT-NOWHERE?

http://download.plt-scheme.org/doc/360/html/mzlib/mzlib-Z-H-33.html#node_idx_1252



The standard error port can be found by using CURRENT-ERROR-PORT.  Here 
are some points of reference that may help:

http://download.plt-scheme.org/doc/360/html/r5rs/r5rs-Z-H-9.html#%25_sec_6.6.3
http://download.plt-scheme.org/doc/360/html/mzscheme/mzscheme-Z-H-11.html#node_sec_11.2
http://download.plt-scheme.org/doc/360/html/mzscheme/mzscheme-Z-H-7.html#node_idx_1394


Posted on the users mailing list.