[mercury-users] socket support in io

Robert Ernst Johann JESCHOFNIK rejj at cat.cs.mu.OZ.AU
Mon Oct 4 21:56:12 AEST 1999


On 4 Oct 1999, Juergen Stuber wrote:

> Fergus Henderson <fjh at cs.mu.OZ.AU> writes:
> > But I agree there
> > is a good case for putting `univ', `pair' and `maybe' in separate modules.
> 
> Yes.  Most of the time it's pair or maybe that I need, and more than
> once I have written
> :- import_module pair.
> before the compiler reminded me that this is wrong.

Along similar lines, is there any good reason that the predicate error/1
is defined in the module "require"?
For a while I kept forgetting that I had to import "require" for the
following to work..

	% Res is an io__result(T)
	(
	    Res = error(Error),
	    io__error_message(Error, Msg),
	    error(Msg)
	;
	...
	)



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