[mercury-users] Prolog DCGs Pattern Matching in Mercury
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Apr 30 11:30:50 AEST 2003
On 29-Apr-2003, Ondrej Bojar <oboj7042 at ss1000.ms.mff.cuni.cz> wrote:
> "foo"
> in Mercury is interpreted as
> "foo"
> i.e. the string itself; represented as a null-terminated sequence of
> bytes.
For the record, the actual representation of strings in Mercury
is implementation-dependent. Although the C and assembler back-ends
of the current Mercury compiler do use null-terminated sequences of bytes,
the Java and .NET back-ends do not; those back-ends use a representation
which is capable of storing strings that contain embedded null characters.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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