[mercury-users] Proposed change to char literal syntax

Ralph Becket rafe at csse.unimelb.edu.au
Thu Oct 5 16:12:47 AEST 2006


Michael Day, Thursday,  5 October 2006:
> >The same thing happens if you have single-character function names such
> >as 'f' and '+'.
> 
> So if you say foo('+'), does the compiler consider that + can refer to 
> the character literal, and the int and float plus operators?

That's correct.  Normally this isn't a problem.  However, if you have a
type error in a large term (and multiple-clause definitions are treated 
as single terms) then you get an explosion.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list