Hi Steve,
This is a known regression in Jess 6.0; it was first reported by Simon
Hamilton. It's fixed in the next release, which should be next week.
Here's a patch for 6.0: change line 189 in jess/HasLHS.java from
if (name.startsWith("*"))
; // <--- THIS LINE
to
if (name.startsWith("*"))
continue;
I think Steve Webster wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> All,
>
> I'm encountering a "First use of variable negated" error that I can not find
> an explanation for in the documentation or this list's mail archive. In
> summary, when first referencing a global variable in a predicate under Jess
> 6.0, a corresponding error is thrown.
>
> The offending code is:
>
> (defglobal ?*mti* = "Recon_PhaseLine")
>
> (deftemplate foo
> (slot instanceName)
> )
>
> (defrule create-salute-report-state
> (foo (instanceName ?*mti*))
> =>
> (printout t "bar")
> )
>
> However, when I replace the predicate, "(foo (instanceName ?*mti*))," with
> what I believe to be the equivalent, "(foo (instanceName ?i&:(eq ?i
> ?*mti*)))," no error results, and the clp file compiles.
>
> Given how basic this scenario is, I can not help but think I have missed
> something obvious. Can anyone tell me why the initial code gives an error on
> compilation?
>
> Thanks in advance for your help,
>
> Steve
>
>
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
--------------------------------------------------------------------
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]
--------------------------------------------------------------------