[mercury-users] socket support in io

Robert Ernst Johann JESCHOFNIK rejj at cat.cs.mu.OZ.AU
Tue Oct 5 10:15:25 AEST 1999


On Tue, 5 Oct 1999, Fergus Henderson wrote:

> > Along similar lines, is there any good reason that the predicate error/1
> > is defined in the module "require"?
> 
> Probably not.
> 
> Do you have any suggestions for what module it should go in?

Perhaps a seperate "errors" module? Instead of having seperate error
numbers in each module, and having things like io__error_message, have
each error defined in an errors module, and simply call
errors__error_message.


> Incidentally, using the exception handling support, which in our latest
> development release is part of the standard library, that might be better
> written as
> ... 
> Here `throw' is defined in the `exception' module --
> hopefully for that one at least the module name is a bit more intuitive ;-)

Indeed :)
Unfortunately, I only have 0.8.1, and that is also the only version
installed on the student machines here at CS, as far as I can tell.


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