JESS: On mark and resetToMark

2007-06-22 Thread Henrique Lopes Cardoso
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 To

Re: JESS: On mark and resetToMark

2007-06-22 Thread Ernest Friedman-Hill
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

JESS: Rules that do not fire.

2007-06-22 Thread Florian Fischer
Hello, In the rather simple program below, I get as output Jess Version 7.0p1 12/21/2006 - defrules - assert Assert user-right - retracts retracting - re-defrule Retract user right -