Hi,

I think Austin David wrote:
> 
> Hi all!
> 
> I've got a question: does the (reset) in 4.1b3 work as
> documented, and am I just seeing something different than I
> think?
> 
> The doc says it removes all facts from the fact-list, but my
> results vary.
> 
> Specifically, when I assert a single fact (actually, I
> definstance a class) and (reset) (run), (facts) will return all
> facts.

Well, reset both removes and asserts facts. Freom the README:

  Removes all facts from the fact list, removes all activations, then
  asserts the fact (initial-fact), then asserts all facts found in
  deffacts and initializes all defglobals.  

'Deffacts' includes definstances in this case (thanks for pointing
this out; I'll clarify this in the next release.) So if you issue a single
(definstance) command, then (reset), the fact-list will have two facts
on it: (initial-fact) and the definstance fact. If you then (run) (as
you imply above) well, then, of course, during the run any number of
facts may be asserted or retracted.

> Also, I'd like to see better documentation around sec. 6 & 7 of
> definstance.  I had a real bear of a time getting my objects into
> Jess with those sections, and it wasn't until later that I tried
> definstance.  I didn't want my code to be so "close" to Jess, but
> it turns out that I'm better off this way. 

You're right; the documentation for defclass and definstance is pretty
sparse. I'll see if I can't squeeze out a few sentences for the next
go-round. Our old friend Win Carus has been generous enough to do some
editing to improve the clarity of Jess' documentation in a number of
places, as well.

Can you describe to me (off the list, I think, at
[EMAIL PROTECTED]) the problems you had in understanding
how to get Java objects into Jess? It's hard for me, being so close to
it, to know exactly what needs better explaining.

> 
> Other than that, a great product!
> -- 
> Austin http://havoc.gtf.gatech.edu/austin Slave to The Man



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (510) 294-2154
Sandia National Labs                FAX:   (510) 294-2234
Org. 8920, MS 9214                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to