Overview
| Artifact ID: | 33910da48094069a663b79686e4911195351e34a |
|---|---|
| Ticket: | 631741ffffffffffffffffffffffffffffffffff
[variable] should not call var resolvers |
| User & Date: | msofer on 2003-02-25 03:46:19 |
Changes
- icomment:
Logged In: YES user_id=148712 1) *wonderful* bug report, with so much detail. Thanks! 2) I'm not sure I understand why Itcl (or any other extension) would want to "create a new local variable and link it to a namespace variable, if a registered package like [incr Tcl]'s variable resolver normally makes the namespace variable visible in a local procedure scope." The semantics are somewhat mysterious to me. The point being: the local name already refers to the namespace variable per the resolution rules; why do we need to create a local var that also refers to the same namespace variable? Performance? This misunderstanding goes deeper into the problems I have with the name resolution rules: the whole resolver mechanism implies that a variable name within a proc defines a variable if the resolver cannot find a pre-existing same-named variable in the resolution path; otherwise, it refers to the resolved variable. State-dependence of (name resolution rules and appearance of side-effects) sounds pretty dangerous to me. This being said, I'm working on patch that should solve this issue.
- login: "msofer"
- mimetype: "text/plain"
- title changed to: ""variable" can't not call var resolvers"
- username: "msofer"