hi,
check the code:
#!/usr/bin/env tclsh
proc mytest {a b {c def} {
set b
#!/usr/bin/env tclsh
proc mytest {a b {c def}} {
set b
#!/usr/bin/env tclsh
proc mytest {a b {c def}} {
set b
}
puts "info args mytest = [info args mytest]"
puts "info body mytest = [info body mytest]"
<<<
get the result:
info args mytest = a b c
info body mytest =
set b
<<<
as you see the "default" from "info arg" last argument "c" is missing
man:
info args procname
Returns a list containing the names of the arguments to procedure procname, in order. Procname must be the name of a Tcl
command procedure.
I need the "info args" including the default !!
mfg
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)