Am 02.01.2006 um 13:31 schrieb Zoran Vasiljevic:


Am 31.12.2005 um 18:24 schrieb Vlad Seryakov:

Agreed on that as well, let's do it

Conclusion:

  ns_register_filter when method urlPattern script ?arg1 arg2 ...?"

The script definition must thus match:

proc script {when args} {...}

For calls w/o args, we are compatbile with AS.
For calls w/ args, we are not.

Who will do that? Stephen?

I'm looking into this now... I will suggest we change
this for *all* Tcl callbacks. Therefore the:

Ns_TclCallback *
Ns_TclNewCallback(Tcl_Interp *interp, void *cbProc,
                  char *script, char *scriptarg)

should migrate to:

Ns_TclCallback *
Ns_TclNewCallback(Tcl_Interp *interp, void *cbProc,
                  char *script, int argc, char **argv)

where argc will hold the number and argv strings of all
arguments.
I do not know if anybody from outside is using this call
in which case we should name it something like:

Ns_TclNewCallbackEx

(admitently, not very innovative...)

Does anybody use this call? Vlad, do you use it in
some of your numerous modules?

Cheers
Zoran


Reply via email to