#55 Improve handling of registered script args

Feature Request
closed
1
2006-12-01
2006-01-13
Zoran Vasiljevic
No

The hanling of the optional stript args passed to
various registered procedures should be unified.

If a registered Tcl callback needs to be invoked
with variable number of arguments, the implementation
should allow registration of variable number of args.
During the invocation of the callback, optional
arguments must be appended AFTER any fixed arguments
as defined by the callback definition.

For example:

ns_register_filter reason /url myScript $arg1 $arg2

should require the myScript to be coded as:

proc myScript {reason args} {...}

in which case the procedure will be invoked as:

myScript $reason $arg1 $arg2

Generally speaking, any command registering a script
should always allow for variable number of optional
args appended.

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=95086

    Added into cvs.

     
  • Stephen
    Stephen
    2006-12-01

    • labels: --> NaviServer - libnsd, libnsthread, nsd
    • milestone: --> Feature Request
    • priority: 5 --> 1