For Programmers: Free Programming Magazines  


Home > Archive > Prolog > February 2007 > A note









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author A note
Kobayashi

2007-02-28, 8:06 am


Hi,

I am learning Prolog from "Laern Prolog Now" and Amzi's tutorial
"Adventure in Prolog" (both are very good!).

My Prolog environment was SWI. But when I tried to use "assert" and
"retract" commands (or should I use another term?) in SWI, it did not
accept them. That made me really sick.

One day, I saw a note in the Internet and the problem was solved.

I added a " :- dynamic blah/1, blahblah/2 " on top of the Prolog
program.

It looks that there is a minor difference between Amzi's Prolog and
SWI.

Hope that helps other people experiencing the same problem.

Ciao.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com