Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2012-11-17
00:41 • Closed ticket [3587651fff]: info functions is incomplete plus 7 other chan... artifact: d774927f7d user: dgp
2012-11-16
23:13 • Ticket [3587651fff]: 4 changes artifact: 50e1c8c71f user: dgp
22:36 • Ticket [3587651fff]: 4 changes artifact: 1f84441c0f user: dgp
2012-11-15
23:28 • New ticket [3587651fff]. artifact: 6866b47517 user: dgp

[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.