Overview
| Artifact ID: | b3433b01f4d9d5299d757a07f761954b6c4b84df |
|---|---|
| Ticket: | 719454ffffffffffffffffffffffffffffffffff
Provide better alias introspection |
| User & Date: | mic42 on 2003-04-11 04:02:03 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed to:
interp alias is a mighty tool, but lacks introspection capabilities that exists for procs. info args info default work only for procs, not for aliases to procs. Example of the problem: proc foo {a b c d e} { puts "Hello" } % interp create a % interp alias a fooz {} foo fooz % interp eval a fooz wrong # args: should be "foo a b c d e" % interp eval a info args fooz "fooz" isn't a procedure % interp alias a fooz foo This makes it impossible for slave interpreters to discover the correct number of arguments from an alias other than by error or by asking their masters for help. It would be really nice if at least the [info args] and [info default] commands would work for aliased procs, probably accounting for the change in the parameters list possible with interp alias. One example where this would be useful is for tclhttpd's Direct_Url system that tries to detect arguments by [info args] which fails for aliased in procs. - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "mic42"
- subsystem changed to: "20. [interp]"
- title changed to: "Provide better alias introspection"
- type changed to: "RFE"