Re: Beginners question...



Wojciech "Spook" Sura schrieb:
Hi! I've got a question - once I've used SWI-Prolog, but now I'm using Poplog's version. I tried to teach prolog in runtime, such as:

?- test(a).

In SWI-Prolog, you enter "user-mode" by
?- [user].
Now you can enter facts and rules. When you're done, press Ctrl+D to compile the rules and leave user-mode. Perhaps this works similar in Poplog (I could not find resources concerning Poplog, you have a link?).


But instead of teaching, prolog answered me basing on its (empty, yet) database "no.". Can you tell me how to change mode into teaching and then into query again? I'm searching the Google and I cannot find the trick.

Best regards -- Spook.


Regards, Karl .



Relevant Pages