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


_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog

Reply via email to