home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!agate!anarres.CS.Berkeley.EDU!bh
- From: bh@anarres.CS.Berkeley.EDU (Brian Harvey)
- Newsgroups: comp.lang.scheme
- Subject: with-input-from-file
- Message-ID: <157f4qINNmi@agate.berkeley.edu>
- Date: 30 Jul 92 01:03:22 GMT
- Distribution: world
- Organization: University of California, Berkeley
- Lines: 11
- NNTP-Posting-Host: anarres.cs.berkeley.edu
-
- How come with-input-from-file and with-output-to-file are neither
- essential nor simulatable with essential procedures?
-
- I mean, if there were set-current-input-port! and set-current-output-port!
- then with-XXX-file could be written in terms of call-with-XXX-file. But
- the current ports can only be read, not set.
-
- With-XXX-file are useful so that a procedure written with screen and/or
- keyboard in mind can be redirected without having to be rewritten.
-
- Thank you for any insight anyone can supply.
-