Skip to content
Tcl Source Code History Of Ticket 9d61624b3d
Login

History Of Ticket 9d61624b3d

Artifacts Associated With Ticket 9d61624b3d

  1. Ticket change [60227c02a4] (rid 132710) by anonymous on 2013-07-07 22:17:10:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      If you do not define a superclass for $class, then oo::object will be
      the superclass of $class. This is explained in the documentation
      (of oo::define) as "an empty parent class is equivalent to oo::object".
      However, if you do oo::define $class { superclass }, then the superclass
      slot is made empty, but does not again become equivalent to oo::object.
      A crash can be caused. Example:
      
      % oo::class create fruit {
          method eat {} {
              puts "yummy!"
          }
      }
      ::fruit
      % set f [fruit new]
      ::oo::Obj12
      % info object class $f oo::object
      1
      % info class superclasses fruit
      ::oo::object
      % oo::define fruit { superclass }
      % info class superclasses fruit
      % info object class $f oo::object
      0
      % info object isa object $f
      1
      % $f destroy 
      impossible to invoke method "destroy": no defined method or unknown method
      % info class call fruit destroy
      cannot construct any call chain
      % $f
      Segmentation fault (core dumped)
      
      -Marcel van der Goot
      
    5. foundin initialized to: "8.6.0"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "f911612b13fc724ee2ff97acb8261b48c1b25f3c"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "35. TclOO Package"
    15. title initialized to:
      empty superclass slot is not always equivalent to oo::object
      
    16. type initialized to: "Bug"
  2. Ticket change [dbec366240] (rid 132781) by aku on 2013-07-10 04:52:08:

    1. assignee changed to: "dkf"
    2. login: "aku"
    3. mimetype: "text/plain"
    4. severity changed to: "Critical"
  3. Ticket change [ce9ef918f7] (rid 133150) by dkf on 2013-08-02 14:37:40:

    1. icomment: "Confirmed interactively. Ouch."
    2. login: "dkf"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [9de2b95c92] (rid 133154) by dkf on 2013-08-02 15:00:08:

    1. closedate changed to: "2456507.12510405"
    2. closer changed to: "dkf"
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"