Hi

Thanks for taking the time to read this.


I would like to be able to assert a fact, and then
retract it, without having to know the fact-id. I am
using v6.0

To give a concrete example, if I declare a fact:

Jess> (assert (a))
 ==> f-0 (MAIN::a)
<Fact-0>

I can retract it:
Jess> (retract 0)
 <== f-0 (MAIN::a)
TRUE
Jess> 

But I do not want to have to know that fact 'a' is
number 0.

As I understand it, I should be able to use the
retract-string (I confess I havn't looked at the java
code, just at the function list), so that I can
retract a fact by name, rather than by it's fact-id.

Something like:
(retract-string a) or (retract-string 'a') or
(retract-string (a)).
Yet all of these appear to be incorrect syntax.

Am I just not using the correct syntax, or is this
related to problems with the Jess parser mentioned in
the release notes?

Thanks

Pol


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.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