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

Peter Ross petdr at miscrit.be
Tue Oct 3 01:23:52 AEDT 2000


On Mon, Oct 02, 2000 at 07:07:16AM -0700, Ralph Becket wrote:
> >From Peter Ross on 02/10/2000 15:01:03
> > I think that the only way a total ordering can be enforced is by
> > including an io__state pair for every stream operation which could
> > modify the external world.
> > 
> > Also Fergus has pointed out some problems with the current design
> > regarding the semantics, the only way I can see to avoid those problems
> > is to include the io__state with every stream operation.
> > 
> > However this solution has some other problems associated with it, I will
> > attempt to elaborate further on it in another email.
> 
> It would be nice if the io__state *was* the stream.
> 
> However, then it's not obvious what one does (other than pass around 
> a handle with the io__state, as one does with the current io library) 
> when one want's to do IO over several different files.
> 
> Passing around handles as well when necessary doesn't seem too bad to 
> me.
> 
The only problem with the io__state becoming the stream is that where do
you put all the stream specific state now, and how do you efficiently
access it?

I am thinking about that now, maybe I will have a solution soon.

Pete
--------------------------------------------------------------------------
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