> Is it possible have a proc with more than one argument registered with
> ns_register_proc ?
>
> In the documentation it says it's possible:

The documentation is wrong.  These are the legal syntaxes for
ns_register_proc:

    ns_register_proc <method> <url> <proc>
    ns_register_proc <method> <url> <arg> <proc>
    ns_register_proc -noinherit <method> <url> <proc>
    ns_register_proc -noinherit <method> <url> <proc> <arg>

If no <arg> is given, then it is as if "" were given for <arg>.

If <proc> is a command implemented in C, then the invocation will be:
<proc> <arg>

Else if <proc> is not a procedure (defined by the proc command), then
the invocation will be: <proc> <arg>

Else if <proc> is a procedure of zero arguments, then the invocation
will be: <proc>

Else if <proc> is a procedure of one argument, then the invocation will
be: <proc> <arg>

Else if <proc> is a procedure of two or more arguments, then the
invocation will be: <proc> <connid> <arg>
where <connid> is a value whose meaning is obsolete.

Madness.

Reply via email to