Skip to content
Tcl Source Code History Of Ticket ef422602e7
Login

History Of Ticket ef422602e7

Artifacts Associated With Ticket ef422602e7

  1. Ticket change [078e07f082] (rid 147467) by anonymous on 2016-07-04 18:45:14:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      oo::class create A {
      
          constructor {} {
              oo::objdefine [self] variable var
              set var something
          }
          method a {} {
              puts $var
          }
          
      }
      [A new] a
      
    5. foundin initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "TclOO oo::objdefine variable"
    16. type initialized to: "Bug"
  2. Ticket change [9b9d9a15b7] (rid 147476) by aspect on 2016-07-05 05:00:22:

    1. closedate changed to: "2457574.70859391"
    2. closer changed to: "aspect"
    3. 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.
      
    4. login: "aspect"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"