Forum OpenACS Development: Re: Can we use namespace variables to avoid upvar?

Collapse
Posted by Jon Griffin on
There are some issues regarding AOLserver and namespaces. Mainly, the way vars are created and not deleted. Things like tcllib are basically impossible to use as it uses namespace vars and AOL doesn't destroy them.
Of course, namespaces are no problem in many contexts.
Collapse
Posted by Tilmann Singer on
Jon, are you saying that if I create and set a namespace variable like this within a tcl script on aolserver:

namespace eval ::mylib {
  variable some_var
  set some_var foo
}

that ::mylib::some_var will persist over connections and not be deleted after the end of the connection of the thread's interpreter such as other vars would be?

Do you know in particular if that is true for aolserver 4? That would be quite a serious bug I think.