On 2005.02.07, dan chak <[EMAIL PROTECTED]> wrote:
> We're still missing something, here.  This solution does not use the
> user-defined proc for procs that may be defined outside the tcl
> library, like a helper proc defined within a .tcl page.

OK, make up your mind.  You just got done saying that you only wanted
your custom [proc] to be used while sourcing the private Tcl library.
Now you want it to be used when defining procs in a .tcl page.  Which is
it?

Maybe describe what problem you're trying to solve that makes you
believe you need to hijack the [proc] proc, and I'll be able to better
help you.

> I'm going to experiment with using ns_ictl get/save durin the
> 'oncreate' script, and see if I can use that to give me 'postcreate'
> capabilities.  I'll post later if that works.

I'm not sure if the timing will be right.  I'm assuming that the master
init script (i.e., what's returned from [ns_ictl get]) has already been
created by the time the oncreate scripts are evaluated.  If that's the
case, then yes, using [ns_ictl oncreate] should allow you to effectively
implement a "postcreate" script that gets evaluated at the end of the
master init script by appending script chunks to it.

Be careful:  you only want to append the script chunk once, not every
time a new interp is created, because IIRC, the master init script is
server-wide.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


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

Reply via email to