Re: JESS: Problem with bload and System functions

2007-07-07 Thread Wolfgang Laun
I can reproduce that error with Foo and Bar, running Jess7.1a1, due to some null pointer exception in the eval. But the documentation for the Jess function call says: The functor call may be omitted if the method being called is non-static. I guess that means that the call, as tried by Henrique,

Re: JESS: Problem with bload and System functions

2007-07-07 Thread Ernest Friedman-Hill
Note that I said Bar and then Foo, but of course I meant Foo and then Bar. If you run these and get an error, let's see it! Nobody's showed me an actual trace yet. On Jul 7, 2007, at 7:02 AM, Wolfgang Laun wrote: I can reproduce that error with Foo and Bar, running Jess7.1a1, due to some

Re: JESS: Problem with bload and System functions

2007-07-07 Thread Wolfgang Laun
Here is another check on the effect of bsave/bload. I define this function: (deffunction ppallfunctions () (bind ?sb (new StringBuffer)) (bind ?it ((engine) listFunctions)) (while (?it hasNext) (bind ?f (?it next)) (bind ?class (call ?f getClass)) (?sb append ?class) (?sb

JESS: An inconsistency between listFunctions() and PrettyPrinter()

2007-07-07 Thread Wolfgang Laun
This is surprising: (deffunction ppallfunctions () (bind ?sb (new StringBuffer)) (bind ?it ((engine) listFunctions)) (while (?it hasNext) (bind ?f (?it next)) ;; The following call isn't possible because the intrinsic functions ;; don't implement jess.Visitable, and the only

Re: JESS: Problem with bload and System functions

2007-07-07 Thread Wolfgang Laun
The same problem occurs when running bin/jess, and (most likely) with any other of the import-ed things. Statics of some classes are automatically (imports are in jess/scriptlib.clp) defined as functions, and that's why there are some exceptions to the rule stated in the documentation on

Re: JESS: Problem with bload and System functions

2007-07-07 Thread Ernest Friedman-Hill
On Jul 7, 2007, at 4:57 PM, Wolfgang Laun wrote: The same problem occurs when running bin/jess, and (most likely) with any other of the import-ed things... Thanks for your persistence. It turns out that this issue has already been reported and fixed for the next release, and that's why I

Re: JESS: An inconsistency between listFunctions() and PrettyPrinter()

2007-07-07 Thread Ernest Friedman-Hill
Userfunctions don't really have a pretty-print representation. In general, the output of PrettyPrinter is Jess code, and since most Userfunctions are classes defined in Java, there isn't any way to sensibly implement visit(Userfunction). On Jul 7, 2007, at 5:39 PM, Wolfgang Laun wrote: