From: SourceForge.net <no...@so...> - 2009-11-25 16:27:13
|
Bugs item #2903811, was opened at 2009-11-25 15:45 Message generated for change (Settings changed) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2903811&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 35. TclOO Package Group: development: 8.6b1.1 Status: Open Resolution: None >Priority: 7 Private: No Submitted By: Donal K. Fellows (dkf) Assigned to: Donal K. Fellows (dkf) Summary: oo::object->variable working wrong Initial Comment: 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... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2903811&group_id=10894 |