[mercury-users] Can not make "mode" while rewriting Prolog -> Mercury
Mike Potanin
potanin at mccme.ru
Fri Nov 1 20:44:32 AEDT 2002
On Fri, 1 Nov 2002, Fergus Henderson wrote:
Thank you!
I, seem, the beginnings to understand :-).
> I think this example requires dynamic modes (the `any' inst)
> and dynamic scheduling, which in Mercury means means making use of
> extras/trailed_update/var.m from the mercury-extras distribution.
> See the code below. It compiles with no errors or warnings,
> and outputs "17", which hopefully is the correct answer.
I could not install libtrailed_update correctly yet. And have to
many linker errors.
(I use Linux emulation on FreeBSD.)
>
> One suggestion: try not to squeeze so many things on a single line.
> The Mercury compiler's error messages only specify the line number,
> not the column number, so you'll find it easier to understand them if
> you don't put so many things on a single line.
Ok.
This is my first Merury programm.
--------------------------------------------------------------------------
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