pass it on ... Consider the following bit of output from Jess (50a2) when using
jess.Console:
Jess> (defclass simple jess.examples.simple.Simple)
jess.examples.simple.Simple
Jess> (definstance simple (new jess.examples.simple.Simple "S1"))
TRUE
Jess> (facts)
EOF
Jess> Jess> (facts)
f-0 (simple (truth FALSE) (class <External-Address:java.lang.Class>)
(name "S1") (fraction 0.0) (serial 0) (OBJECT <External-Address:jess.examples.simple.Simple>))
For a total of 1 facts.
TRUE
I've seen this happen many times in Jess50a2 and I think it has something
to do with Strings.
For example if I do the smae as above but use the symbol S1 instead
of the string "S1"
it works as expected (see below).
Jess> (definstance simple (new jess.examples.simple.Simple S1))
TRUE
Jess> (facts)
f-0 (simple (truth FALSE) (class <External-Address:java.lang.Class>)
(name "S1") (fraction 0.0) (serial 0) (OBJECT <External-Address:jess.examples.simple.Simple>))
For a total of 1 facts.
TRUE
In both cases this was done immediately after starting jess.Console.
Cheers, Bob.
