[info functions] is incomplete
Closed / Fixed3587651fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-11-15 23:28:06
% namespace eval my {
namespace eval tcl {
namespace eval mathfunc {
proc foo args {return 0}
}
}
}
% namespace eval my {expr {foo()}}
0
% namespace eval my {expr {"foo" in [info functions]}}
0
[info functions] ought to return a list of all usable
function names in current context, but it's only
returning the global set.
dgpplain2012-11-16 22:36:21
Fixed [info functions] by re-implementing in Tcl to do the right thing.
dgpplain2012-11-16 23:13:11
...and Tcl_ListMathFuncs() fixed by turning it into an eval of [info functions]. This is just for any callers that may exist. I strongly suspect there are none.
dgpplain2012-11-17 00:41:09
allow_comments - 1
Log in (anonymous is fine) to add a comment.