[mercury-users] string comparisons

Nicholas Nethercote njn at csse.unimelb.edu.au
Fri Jan 25 09:35:02 AEDT 2008

On Thu, 24 Jan 2008, Julien Fischer wrote:

>> I don't see any predicates to compare strings in the 'string' library. 
>> Does the built-in string comparison do lexicographical ordering?
> The builin string comparison just calls strcmp() in the C grades,

Can I rely on this?  It's not documented, as far as I can see.

Given how many operations there are in the string library, I was surprised 
that no comparison operation is (obviously) in there.

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