[m-rev.] diff: document list constructor change in Prolog transition guide
Simon Taylor
stayl at cs.mu.OZ.AU
Sat Oct 6 13:33:25 AEST 2001
Estimated hours taken: 0.1
Branches: main
doc/transition_guide.texi:
Note that the list constructor is now different to that in Prolog.
Index: transition_guide.texi
===================================================================
RCS file: /home/mercury1/repository/mercury/doc/transition_guide.texi,v
retrieving revision 1.37
diff -u -u -r1.37 transition_guide.texi
--- transition_guide.texi 3 Oct 2001 11:37:56 -0000 1.37
+++ transition_guide.texi 6 Oct 2001 03:31:18 -0000
@@ -200,6 +200,8 @@
all Vars Goal
@end example
+The constructor for lists in Mercury is @samp{[|]/2}, not @samp{./2}.
+
Terms with functor '@{@}/@var{N}' are treated slightly differently in Mercury
than in ISO Prolog. ISO Prolog specifies that ``@{1, 2, 3@}'' is parsed as
@code{'@{@}'(','(1, ','(2, 3)))}. In Mercury, it is parsed as
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list