[mercury-users] Beyond "Hello World"

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Feb 24 22:27:32 AEDT 2005


On 23-Feb-2005, Martin Proud <mproud at knox.edu> wrote:
> "Hello World" compiles and runs, thankfully. So I'm looking for some 
> other programs to test. I tried running some in Ralph Beckett's 
> tutorial (I'm assuming they're programs and not snippets? Maybe I'm 
> wrong?) but I am getting errors. For example, for factorial:
> 
> factorial.m:005: In clause for predicate `factorial.factorial/2':
> factorial.m:005:   error: undefined predicate `=</2'.

Did you miss the ":- import_module int." line?

If not... is that the only error message?  Were there any messages
before that?

-- 
Fergus Henderson                    |  "I have always known that the pursuit
                                    |  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