This may be a 'oops' question (possibly a 'duh':-), but I am having a
problem referring to a global variable in a pattern.
I am using Jess 5.0a2.

A rule like:
(defrule global-test
  (foo ?b&:(> ?b ?*my-global*))
  =>
  (printout t "bigger than my global." crlf))

with 
(defglobal ?*my-global* = 5)

Yields the parse error:
"Unbound variable found in funcall: *my-global*"

Am I missing a bit of syntax, are references to globals not allowed in the
LHS, or is this a bug?

Thanks in advance,
Andy

 <<Doyle, Andy (E-mail).vcf>> 

Doyle, Andy (E-mail).vcf

Reply via email to