JESS: empty list pattern and ppdefrule

2005-11-03 Thread Jonathan Sewall
In a December 2004 reply posted on the forum, we see the script dan.clp (below). We have observed that its pattern (foo (data $?data:(= (length$ $?data) 0))) can be rewritten more simply (foo (data )) and the rule behaves similarly (cf. also the fact printouts in the watch

Re: JESS: empty list pattern and ppdefrule

2005-11-03 Thread ejfried
I think Jonathan Sewall wrote: However, in Jess v7.0b4, ppdefrule omits the (data ) pattern from its output. Is our simpler syntax for testing multislots unsupported? Many thanks, Seems to work as ever; this is apparently just a bug in the pretty-printer. Thanks for the report.

Re: JESS: empty list pattern and ppdefrule

2005-11-03 Thread Jason Morris
In a December 2004 reply posted on the forum, we see the script dan.clp (below). We have observed that its pattern (foo (data $?data:(= (length$ $?data) 0))) can be rewritten more simply (foo (data )) Hi Jonathan, This is an interesting point...since it was also my code :-D Had I