[mercury-users] Libraries and DCG convenience...

Marko Schuetz marko at ki.informatik.uni-frankfurt.de
Wed Jun 23 16:54:27 AEST 1999


>>>>> "Thomas" == Thomas Conway <conway at cs.mu.OZ.AU> writes:
>> Yes, this does seem like a nice idea.  In fact, it's applicable to any
>> type which can be divided into independent bits, eg, destructive
>> arrays.  This would be very nice to have in Mercury.

Thomas> I thought so too for a while. What happens (or more importantly,
Thomas> what are the semantics) where I open a file for reading and
Thomas> somewhere else open the same file for writing (for example) -
Thomas> assuming that the latter truncates the file, then I care very
Thomas> much what ordering of IO operations I get in an absolute
Thomas> sense.

The two operations depend on the same part of the io__state. So the
order between them must be respected by the compiler.

Marko
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list