Artifacts Associated With Ticket 9d61624b3deb9fc6
Ticket change [60227c02a4] (rid 132710) by anonymous on 2013-07-07 22:17:10:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "8.6.0"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "f911612b13fc724ee2ff97acb8261b48c1b25f3c"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "35. TclOO Package"
- title initialized to:
empty superclass slot is not always equivalent to oo::object
- type initialized to: "Bug"
Ticket change [dbec366240] (rid 132781) by aku on 2013-07-10 04:52:08:
- assignee changed to: "dkf"
- login: "aku"
- mimetype: "text/plain"
- severity changed to: "Critical"
Ticket change [ce9ef918f7] (rid 133150) by dkf on 2013-08-02 14:37:40:
- icomment: "Confirmed interactively. Ouch."
- login: "dkf"
- mimetype: "text/x-fossil-wiki"
Ticket change [9de2b95c92] (rid 133154) by dkf on 2013-08-02 15:00:08:
- closedate changed to: "2456507.12510405"
- closer changed to: "dkf"
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"