Am 01.06.2005 um 15:45 schrieb Vlad Seryakov:
To be as much close to current Tcl convention in proc syntax we can
add optional type AFTER default value
ns_proc test { {-flag 0 flag} {-list a oneof {a b c}} {-name ""}
{ value "" } } {
}
This way i do not have to remember 2 different ways to provide
default value and if i want type checking, i will give optional
typoe, if not then no type cheking.
The only side-effect is of course that you'd need to give the default
argument if you need type-checking. I believe I can live with that.
Zoran