On Feb 11, 2008, at 10:42 AM, JimYates wrote:
Should the new dot notation work in a defquery? I get an "No such
slot"
error message.
(deftemplate has (slot categoryName) (slot servicedate) (slot
location)
(slot invoice) (slot deptName))
(defquery query_10
?h1 <- (has (categoryName "OT") )
?h2 <- (has {categoryName == "ST" && h1.categoryName !=
categoryName})
)
As of now, the syntax is "slot-name operator slot-expression" --
i.e., the first operand of the expression can only be a slot name in
the current pattern. Turning this around like
?h2 <- (has {categoryName == "ST" && categoryName != h1.categoryName})
would work fine. This limitation should be lifted by 7.1 final.
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences 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]
--------------------------------------------------------------------