Hi everyone,

I am impressed by the quality of the Jess.
It is really powerfull system. {:) 

I have simple question:
Is this query supposed to work ? 

(deftemplate person
 (slot id     (type INTEGER) (default 0)     ) ;; 0 means not initialized
 (slot sex    (type ATOM)    (default nil)   ) ;; male/female atoms
 (slot mother (type INTEGER) (default 0)     ) ;; 0 means not initialized
 (slot father (type INTEGER) (default 0)     ) ;; 0 means not initialized
 )
...
(defquery children-of (declare (variables ?id)) 
  (person (mother ?mid) (father ?fid))
  (test (or (= ?id ?mid) (= ?id ?fid)))
  )

the run-query complains about sth like  
 Value.listValue while executing (= ?id ?mid)
 Not a list: "1" (type = INTEGER).

But there are only integer number involved in this query,
so why is he expecting list ?

Am I missing something about concept of queries ?

Thank you very much
Michal 
-- 
[EMAIL PROTECTED] phone: 415.876.0187 pager: 415.253.8030



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