users-prolog
[Top][All Lists]
Advanced

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

Re: question on assert and retract


From: bruno patin
Subject: Re: question on assert and retract
Date: Tue, 27 Aug 2002 19:31:30 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530

Thanks for your help. I tried the litlle example and it worked as waited. I understood what I've done to btain my no rreply. Don't take this into account. But now, as listing is not an iso-prolog directive how not to add the same facts two times ? and has assertz the same comportment in other prolog implementations ?

thanks again

Vic Bancroft wrote:

On Tue, 27 Aug 2002, Timo Karjalainen wrote:

On Mon, 26 Aug 2002, Vic Bancroft wrote:

Or are you sure you didn't backtrack over the retract/1 call? It will be
executed again until there are no more matches.

The 1.2.12 version gives,

 | ?- retract(toto(2)).

 true ? ;  <-----------------+
                             |
 yes                         |
                                 !
I did sneak in the backtrack port !
more,
l8r,

------------------------------------------------------------------- Victor Bancroft, Principal Engineer, Zvolve Systems [v]770.551.4505 1050 Crown Pointe Pkwy, Suite 300, Atlanta GA 30338 [f]770.551.4509 Fellow, Artificial Intelligence Center [v]706.542-0358 Athens, Georgia 30602, U.S.A http://ai.uga.edu/~bancroft








reply via email to

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