RE: JESS: multiple bindings of a multislot

2011-08-16 Thread Friedman-Hill, Ernest
, 2011 11:22 AM To: jess-users Subject: Re: JESS: multiple bindings of a multislot I solved it by binding the lot: (Temp (m $?mels)) and writing deffunctions testing all other patterns. I ran into this while trying to solve the Zebra Puzzle in a way fundamentally different from the example

Re: JESS: multiple bindings of a multislot

2011-08-16 Thread Wolfgang Laun
I solved it by binding the lot: (Temp (m $?mels)) and writing deffunctions testing all other patterns. I ran into this while trying to solve the Zebra Puzzle in a way fundamentally different from the example distributed with Jess. I have all permutations as facts and select them by filtering accor

RE: JESS: multiple bindings of a multislot

2011-08-15 Thread Friedman-Hill, Ernest
Yes, "reopening" a slot like this is an error; this behavior was inherited from CLIPS. I can't think of any particularly elegant workarounds. You can name those anonymous multifields and refer to them later in the rule, though -- i.e., (Temp (m $?first one two $?rest) "?first" and "?rest"