Is it possible have a proc with more than one argument registered with
ns_register_proc ?
In the documentation it says it's possible:
(at http://www.aolserver.com/docs/tcldev/tapi-104.htm#3937 ):
ns_register_proc GET /twoargs twoargs fnord
ns_register_proc GET /threeargs threeargs fnord fjord
proc twoargs { conn context { greeble bork } } {
...
} ;
proc threeargs { conn context {greeble bork } { hoover quark } } {
...
} ;
But when i try it in a session with nscp:
nscp 1> proc threeargs { conn context {greeble bork } { hoover quark} } } {
return 0
}
b2civi-dev:nscp 2> ns_register_proc GET /threeargs threeargs fnord fjord
wrong # of args: should be "ns_register_proc ?-noinherit? method url
procName ? args?"
b2civi-dev:nscp 3>
Is there a way to do it?
I've tried passing a list (ns_register_proc GET /threeargs [list fnord
fjord]) but it hasn't worked.
Thanks a lot for your attention.
-- Gaizka Villate