Indeed, this is a bug (or at least an error of omission.) I've worked
out a way to make this work, so you can expect this capability in the
next release. There's no quick fix, though.
I think Michael H. Coen wrote:
>
> This seems like a bug to me, namely deffacts don't interpret global
> variables as slot values:
>
> (deftemplate factToShowBug
> (slot niceSlot (type STRING)))
>
> (set-reset-globals nil)
>
> (defglobal ?*foo* = "bar")
>
> (deffacts buggyFact
> (factToShowBug (niceSlot ?*foo*)))
>
> (defrule showBug
> (factToShowBug (niceSlot ?a))
> =>
> (printout t "What's up with this: " ?a crlf))
>
> Jess> (reset)
> TRUE
> Jess> (facts)
> f-0 (initial-fact)
> f-1 (factToShowBug (niceSlot ?*foo*))
> For a total of 2 facts.
> Jess> (run)
> What's up with this: ?*foo*
> ------
>
> That output certainly seems wrong...
>
> Michael
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------