Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.sprintlink.net!newsfeed.internetmci.com!news.kei.com!nntp.coast.net!col.hp.com!news.dtc.hp.com!hplntx!hplntx.hpl.hp.com!gjr
From: gjr@hplgr2.hpl.hp.com (Guillermo (Bill) J. Rozas)
Subject: Re: Best behavior for with-input-from-file
Sender: news@hpl.hp.com (HPLabs Usenet Login)
Message-ID: <GJR.95Dec14134830@hplgr2.hpl.hp.com>
In-Reply-To: will@ccs.neu.edu's message of 13 Dec 1995 20:09:32 GMT
Date: Thu, 14 Dec 1995 21:48:30 GMT
Reply-To: gjr@hplabs.hpl.hp.com
References: <4aic0t$mcm@larry.rice.edu> <QOBI.95Dec13105042@qobi.ai>
	<4anbts$j4h@camelot.ccs.neu.edu>
Nntp-Posting-Host: hplgr2.hpl.hp.com
Organization: /users/gjr/.organization
Lines: 18

In article <4anbts$j4h@camelot.ccs.neu.edu> will@ccs.neu.edu (William D Clinger) writes:

|   In MIT Scheme, you see, escaping from the current continuation would
|   close the files opened by WITH-INPUT-FROM-FILE or WITH-OUTPUT-TO-FILE,
|   restoring the current input or output port (in some sense).
|   If you later escaped back in, at exactly the same place you left
|   earlier (in some sense), then those files would be automagically
|   re-opened to exactly the same state they were in when you originally
|   left (in some sense), and the current input or output port would
|   change back to those files (in some sense).

To my knowledge, no implementation of MIT Scheme has ever implemented
this functionality (reopening on reentering), nor has this been the
definition of these procedures.

It was suggested at one of the Scheme report meetings as a plausible
desirable behavior, but it was not adopted, and MIT Scheme did not
change.
