You're not calling resetToMark; you're providing two arguments (the symbol resetToMark and the variable ?m) to the "engine" function, which are both ignored. You want to say

((engine) resetToMark ?m)

Similarly, you're not calling "mark" -- you want to say

((engine) mark)

On Jun 22, 2007, at 12:28 PM, Henrique Lopes Cardoso wrote:

Hi,

I tried this at Jess prompt:

(reset)
(assert (a))
(bind ?m (engine mark))
(assert (b))
(engine resetToMark ?m)
(facts)

At the end, fact (b) is still there. Shouldn't it be retracted with
resetToMark?

Henrique

---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to