On Aug 16, 2007, at 9:36 AM, Wolfgang Laun wrote:

Is it correct that it isn't possible to bind the entire value of a multislot to a variable *and* use some list pattern to restrict the facts at the same time? Consider:

Yes, that's right.

It's possible to work around this restriction: A predicate can be written to test for the pattern, such as, e.g. (ae $?msae &:(test- bc ?msae)).

Yes. Alternatively, you could use the list patterns, and then use fact-slot-value to recover the entire slot contents on the rule RHS.

---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com




--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to