[mercury-users] tutorial questions

Michael Hendricks michael at ndrix.org
Sat Dec 24 07:38:31 AEDT 2011


I've just finished compiling Mercury 11.07 and am starting to learn the
language based on the Tutorial.  Some compiler messages I saw while trying
to break the Hello World example, suggest the Tutorial may be using
slightly outdated syntax.

Section 9.1 of the Language Reference Manual suggests that "." has replaced
"__" for referencing predicates inside a module.  For new code, should I be
using "."?

Section 2.11 of the Language Reference Manual suggests that state variable
notation should be used instead of DCG notation for the Hello World
example.  Have I understood that correctly?

Thanks for your help and for an intriguing language.

-- 
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20111223/222630ca/attachment.html>


More information about the users mailing list