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