[mercury-users] Proposed change to char literal syntax

Ralph Becket rafe at csse.unimelb.edu.au
Thu Oct 5 14:04:15 AEST 2006


Michael Day, Thursday,  5 October 2006:
> >Alas, that isn't quite true.  Because of an early decision to make
> >Mercury strings identical to C strings, you can't have a function symbol
> >that contains character code 0 (NUL).  I think the string decision was a
> >poor one, but currently that's what we have.
> 
> Is this:
> 
>     :- func '\0' = char.
> 
> treated like this:
> 
>     :- func '' = char.
> 
> by the compiler?

Yep.  Nasty, eh?
--------------------------------------------------------------------------
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