users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling and running in Windows


From: Johannes Middeke
Subject: Re: Compiling and running in Windows
Date: Wed, 03 May 2006 12:19:59 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3.50 (gnu/linux)

Hello,


you have to change the first line to 

:- initialization( (allfacts(L), write(L), nl, halt) ).

Like all directives has initialization/1 to be preceded by
:-. otherwise prolog would interpret it as an user-provided fact.
Second point is, if you want your list L to be printed, you should
tell prolog that. The extra pair of parenthesis is because
initialization/_1_ expects a single fact.


Cheers,
Johannes




reply via email to

[Prev in Thread] Current Thread [Next in Thread]