users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to add facts during runtime in VC++


From: Lindsey Spratt
Subject: Re: Trying to add facts during runtime in VC++
Date: Mon, 17 Feb 2003 17:28:54 -0600


On Monday, February 17, 2003, at 04:30  PM, Joseph N. Fiore wrote:

Now.  While the C program is running, it learns from an outside source,
that John has a son named Joe.  How do I tell GNU-Prolog from the C
program, the new fact?  parent(john,joe).

Make sure that you have declared parent/2 dynamic.
Then I think you want to evaluate a gprolog query using the builtin assert/1:

assert(parent(john, joe)).

Lindsey Spratt
http://homepage.mac.com/lspratt


Attachment: call_string.pl
Description: Binary data



reply via email to

[Prev in Thread] Current Thread [Next in Thread]