users-prolog
[Top][All Lists]
Advanced

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

question on assert and retract


From: bruno patin
Subject: question on assert and retract
Date: Mon, 26 Aug 2002 20:51:51 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530

is it normal that two identic call to assertz will have a positive answer ? for example :

assertz(toto(2)).
assertz(toto(2)).

toto(X).
X=2
yes
X=2
no

retract(toto(2)).

toto(X).
no


I had assumed that the second assertz would have failed ...






reply via email to

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