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: 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: