Artifacts Associated With Ticket ef422602e7
Ticket change [078e07f082] (rid 147467) by anonymous on 2016-07-04 18:45:14:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
oo::class create A { constructor {} { oo::objdefine [self] variable var set var something } method a {} { puts $var } } [A new] a - foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to: "TclOO oo::objdefine variable"
- type initialized to: "Bug"
Ticket change [9b9d9a15b7] (rid 147476) by aspect on 2016-07-05 05:00:22:
- closedate changed to: "2457574.70859391"
- closer changed to: "aspect"
- icomment:
This is behaving as intended, though it might be surprising without a close reading of http://www.tcl.tk/man/tcl/TclCmd/define.htm#M30 to see: > This slot (see SLOTTED DEFINITIONS below) arranges for each of the named variables to be automatically made available in the methods declared by the object being defined. oo::define variable - makes variables automatically visible in methods defined on the same class. oo::objdefine variable - makes variables automatically visible in methods defined _on the object_. https://wiki.tcl.tk/41708 and particularly http://www.magicsplat.com/articles/oo.html deal with this in more detail.
- login: "aspect"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"