Re: Compiling and running in Windows

Johannes Middeke <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.