- marked as enhancement
Allow user to select input, output, and error port in Scheme
Issue #51
new
I'm not sure how important it is to implement this, but it's listed on the scheme website, so I thought I'd mention it.
"The current-input, current-output, and current-error ports return pre-built textual ports that are initially associated with a process's standard input, standard output, and standard error streams.
The values returned by current-input-port and current-output-port can be altered temporarily by the convenience I/O procedures with-input-from-file and with-output-to-file"
http://www.scheme.com/tspl4/io.html#./io:s32
(current-input-port)
Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'current-input-port'
Comments (1)
-
- Log in to comment