How can you know exactly what variables to clean up in each
namespace? Even the cleanup for the global namespace doesn't
completely wipe out all variables.
This is exactly the problem we ran into when thinking about how we
could better support Tcl namespace variables in AOLserver 4.5. The
short answer is that there doesn't necessarily seem to be a good
way to do this automatically for you, and instead it will be up to
each developer to delete the namespace variables they have created:
ns_ictl trace deallocate {... your cleanup here ...}
In AOLserver 4.5 the callbacks have been cleaned up and now fire in
the right order, lifo for cleanups, fifo for inits. Hope that helps!
I didn't know about this "trace" option for ns_ictl, it is not
documented:
http://www.panoptic.com/wiki/aolserver/Ns_ictl
is it equivalent to:
ns_ictl oncleanup script
Registers a script to be executed at Tcl interpreter cleanup time.
-john
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.