(get-var) was a kludge to let you refer to globals on rule LHSs at all
-- i.e., to allow you to even use them in expressions like
(foo (bar ?a&:(eq a (get-var ?*b*))))
Nowadays you can just write
(foo (bar ?a&:(eq a ?*b*)))
So the get-var function doesn't exist anymore. The ability to directly
match defglobals, something like
(defrule foo
(global ?*b* 37)
is something that we have indeed talked about, but I've never
implemented.
I think Willie Wheeler wrote:
> Hi all,
>
> I am trying to figure out how to match globals on the left-hand
> side. I searched the archives and found Jess's behavior with respect to
> this issue characterized variously as a bug and as a idiosyncracy, and I
> even found a message where a "matchable" attribute for defglobal was
> proposed, but there is no mention of a solution. (Well, there was one
> mention of a get-var function being involved, but I don't see any such
> function in the manual and it doesn't seem to work in the code.)
>
> Willie
>
>
---------------------------------------------------------
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]
---------------------------------------------------------------------