JESS: Global variables and bags

2004-05-27 Thread fb
Hi, I would need a little help. I try to create a bag and bind it to a global variable. This works well. After a reset (set-reset-globals is set to true) the global variable still point to the bag and the bag content still exists. Here the code: (defglobal ?*QueryList* = (bag create

Re: JESS: Global variables and bags

2004-05-27 Thread ejfried
I think [EMAIL PROTECTED] wrote: Any suggestions? bag create returns an existing bag if there's already one by that name; reset doesn't clear the list of bags. Therefore, although the defglobal is indeed reset, it's reset to set to the same object! Note that all bag does is manage a Hashtable

Re: JESS: Global variables and bags

2004-05-27 Thread fb
Great! Works Thanks Felix On 27 May 2004 at 15:16, [EMAIL PROTECTED] wrote: I think [EMAIL PROTECTED] wrote: Any suggestions? bag create returns an existing bag if there's already one by that name; reset doesn't clear the list of bags. Therefore, although the defglobal is indeed