On Apr 4, 2007, at 3:01 PM, Rusty Brooks wrote:
would
ns_eval [ns_markfordelete]
work? ns_eval runs a bit of tcl code in each thread.
See, I knew there ought to be an easy way! Thanks!
Thanks Dossy & Rusty!
Personally, I don't use packages/package require, I have an init
script that loads everything. Additionally, all my pieces of code
are broken up into modules. So I can say something like
"module_load /module1" and it'll run the init for that module,
updating all the existing threads. If I say "module_load /" then
it'll load all the modules (they are hierarchically organized)
P.S. the first and only time I've used packages in aolserver was a
port of Listmanager, which you're obviously familiar with. When I
want to reload stuff I actually do a ns_eval myinit where myinit
just reloads everything in custom and htdocs/libtml. It's crude
but it works for my purposes.
I kind of do the same thing, in that I have an init proc that does a
"package require" of everything my aolserver app needs, and if rerun
it first does a "package forget" on all of them. While in
development, every page load causes a "package forget" so that I
reload everything, so that every code change becomes immediately
apparent.
-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.