Artifacts Associated With Ticket 3609693
Ticket change [3aff957e59] (rid 112655) by pooryorick on 2013-04-01 13:41:41:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In the following script, $obj2 thinks the value of its $var1 is "val1" namespace import oo::* set obj [object new] objdefine $obj variable var1 objdefine $obj method m {} { set var1 val1 } objdefine $obj method get {} { return $var1 } $obj m $obj get set obj2 [oo::copy $obj] ${obj2}::my eval { set var1 val2 } puts [$obj2 get] - foundin initialized to: "current: 8.6.0"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "copied object member variable confusion"
- type initialized to: "Bug"
Ticket change [65569c49f7] (rid 102527) by dkf on 2013-04-01 23:46:05:
- icomment:
Looks like there's a cached reference to the variable in the method implementation, which is indeed the case because that's how variable references in object-specific methods are bound. The method cloner needs work...
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "dkf"
- icomment:
Ticket change [e5beba6964] (rid 133168) by dkf on 2013-08-03 19:21:51:
- closer changed to: "nobody"
- comment changed to:
In the following script, $obj2 thinks the value of its $var1 is "val1" namespace import oo::* set obj [object new] objdefine $obj variable var1 objdefine $obj method m {} { set var1 val1 } objdefine $obj method get {} { return $var1 } $obj m $obj get set obj2 [oo::copy $obj] ${obj2}::my eval { set var1 val2 } puts [$obj2 get] - login: "dkf"
- mimetype: "text/plain"
- severity changed to: "Important"
Ticket change [0a1bef4d34] (rid 133394) by dkf on 2013-08-21 09:38:47:
- icomment:
Committed a test to branch bug-3609693, but the code I've got to try and fix this crashes quite a distance away; I'm doing something wrong, but I don't know what.
- login: "dkf"
- mimetype: "text/x-fossil-wiki"
- username: "dkf"
- icomment:
Ticket change [68e0d967a9] (rid 133752) by dkf on 2013-09-09 13:37:24:
- closedate changed to: "2456545.06764601"
- closer changed to: "dkf"
- icomment:
Ah! Needed to strip the internal representation from the body to prevent some strange things from happening. Fixed now.
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"
Ticket change [b37a9cce49] (rid 133753) by dkf on 2013-09-09 14:02:05:
- closer changed to: "nobody"
- icomment: "Damn. This breaks itcl completely."
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "None"
- status changed to: "Open"
- username: "dkf"
Ticket change [c8c18b8322] (rid 133758) by dkf on 2013-09-09 14:13:42:
- closedate changed to: "2456545.0928556"
- closer changed to: "dkf"
- icomment:
False alarm; that crash happens without this change too. Whatever's going on, it's not this.
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"