| To: | scsh-bugs@zurich.ai.mit.edu |
|---|---|
| Subject: | Nested call-with-xxxput-file |
| From: | Rolf-Thomas Happe <rthappe@balrog.mathematik.uni-freiburg.de> |
| Date: | Mon, 2 Oct 2000 18:51:21 +0200 (CEST) |
I would think that the two pieces of code below are (roughly)
equivalent. However, scsh (0.5.2 / IRIX 6.5) executes the second
but fails on the first.
(call-with-input-file "walt.foo"
(call-with-output-file "walt.bar"
(lambda (op)
(lambda (ip)
(display (read ip) op)))))
(call-with-input-file "walt.foo"
(lambda (ip)
(call-with-output-file "walt.bar"
(lambda (op)
(display (read ip) op)))))
Its complaint:
Error: Bad argument
#{fdport-data}
#{Procedure 10293 open-fdport-data?}
#{Procedure 10250 fdport*-write-string}
rthappe
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Next by Date: | Re: Nested call-with-xxxput-file, Michael Sperber [Mr. Preprocessor] |
|---|---|
| Next by Thread: | Re: Nested call-with-xxxput-file, Michael Sperber [Mr. Preprocessor] |
| Indexes: | [Date] [Thread] [Top] [All Lists] |