Subject: Re: Scheme Pre-Interpretor: UPDATE
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1998/10/09
Newsgroups: comp.lang.scheme
Message-ID: <6vkuda$1qv5g@fido.engr.sgi.com>
Johann Hibschman  <johann@physics.berkeley.edu> wrote:
+---------------
| srwoodwa@undergrad.math.uwaterloo.ca (Sean Woodward) writes:
| > IN BRIEF: How do you write to Standard Error?
| 
| It depends on which scheme implementation you're using.
| There is no standard method.
+---------------

While strictly true, in practice nearly every implementation
provides the extension procedure "current-error-port", analogous
to the standard procedure "current-output-port". So the following
is very likely (though not guaranteed) to be portable:

	(display "This is an error message" (current-error-port))
	(newline (current-error-port))


-Rob

[p.s. Apologies in advance: Email'd replies may get
a "vacation" bounce message while I'm on sabbatical...]

-----
Rob Warnock, 8L-855		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
2011 N. Shoreline Blvd.		FAX: 650-964-0811
Mountain View, CA  94043	PP-ASEL-IA