Overview
| Artifact ID: | 56b87ea0df9840a43eacc02d88c7885227fc6b12 |
|---|---|
| Ticket: | 2903811fffffffffffffffffffffffffffffffff
oo::object->variable working wrong |
| User & Date: | dkf on 2009-11-25 15:45:50 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
The following script fails: oo::object create obj oo::objdefine obj export variable proc foo o {o variable x; set x OK} proc bar o {o variable x; return $x} foo obj; bar obj Reading the documentation in the object(n) manual page would not lead you to this conclusion. The problem appears to be a guard inside the implementation that makes the method only work inside the body of a method instead of any normal stack context (like [global]). Arguably, it might even be beneficial to allow it to work in namespaces... - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dkf"
- subsystem changed to: "35. TclOO Package"
- title changed to: "oo::object->variable working wrong"
- type changed to: "Bug"