[m-dev.] for review: stream I/O

Michael Day mcda at students.cs.mu.oz.au
Tue Oct 3 21:19:32 AEDT 2000


> Well, if you don't know the scope of the stream, I think it should
> always be possible to write your program in continuation-passing
> style, so that if necessary all the code between the point where
> the stream is opened and the end of `main' ends up being inside
> the scope of the `with_stream'.  This won't necessarily be convenient,
> but I think it should be possible...

Is it possible to open and close overlapping streams with with_stream?

eg:

	open A
	open B
	do stuff with A and B
	close A
	close B

Michael

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list