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