Version 3 of info default

Updated 2005-07-03 01:50:06

info default procname arg varname

Procname must be the name of a Tcl procedure and arg must be the name of an argument to that procedure. If arg doesn't have a default value then the command returns 0. Otherwise it returns 1 and places the default value of arg into variable varname.

Zarutian 03. july 2005: why does this sub-procedure require an varname? It realy should return an list with two elements. The first one is the boolean (predicate: this arg of this proc has default value?). The second one is the default value (Empty if the boolean is "0" (false)).


See also:


Category Command - Tcl syntax help