I think Juraj Frivolt wrote:
> Doesn't this piece code of solve changing of the unwanted "global
> variables"?
> 
> public void setVariable(String name, Value value) throws JessException
> {
>       Hashtable ht;
>       if (m_rete.findDefglobal(name)!=null)
>           ht = findVariable(name);
>       else
>           ht = getVariables();
>       ht.put(name, value);
> }


Yes it does; but it costs one more HashMap lookup. A noticeable hit
since we do this for every variable access.

Sometime in the future Jess will probably move to a more traditional
stack-based scheme.



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

Reply via email to