On Friday 06 June 2003 17:35, you wrote:
> On Friday 06 June 2003 08:15 am, Zoran Vasiljevic wrote:
> > My initial idea was to simply make the Nsd as static package by doing
> > Tcl_StaticPackage() at the end of InitInterp() and then do from Tcl:
> >
> > set interp [interp create]
> > $interp eval {load "" Nsd}
> > $interp eval [ns_ictl get]
> >
> > and so on... but this won't get the proper virtual server context
> > so it'll skip the traces. Phew. I must dig little bit more there.
>Mark just brought a good idea on how to solve the ns_eval problem w/o digging into C-code. We'd just spin-of a new thread, do the eval there, get the blueprint and use it for initializing of other interps. It's not fast, as it requires a thread-creation, but given the low frequency of ns_eval's this should do the work. The net-effect is that all can be done in Tcl alone in couple of lines. So I assume Mark will take care of that in bin/init.tcl file. Cheers, Zoran -- 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.
