Artifacts Associated With Ticket 3487424
Ticket change [9f0584a82b] (rid 96572) by basilik99 on 2012-02-13 23:20:53:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi, I use ActiveState Tcl 8.6.0.0.295132 Beta 6. I have a class with a static method that changes the list of its baseclasses: self method DISABLE_SUPERCLASSES {} \ { oo::define SNAPSHOT_ELEMENT superclass "" } self export DISABLE_SUPERCLASSES This yields the error: " does not refer to an object". TclOO does not accept the empty string. I might not use the right technique here... But is there a way to remove all superclasses of a given class? As a workaround, I can create a dummy class and make it its superclass... Or I can use oo::object as the dummy base class. Thanks, Etienne - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "basilik99"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "Cannot remove all superclasses of a TclOO class"
- type initialized to: "Bug"
Ticket change [09356c4f62] (rid 89680) by dkf on 2012-02-14 17:21:23:
- closedate changed to: "2012-02-14T10:21:23"
- closer changed to: "dkf"
- icomment:
[superclass] takes multiple arguments, one per superclass. You can't say that there is _no_ superclass, as TclOO is a single-rooted class system. You can say that the superclass is oo::object, which will be functionally the same. (You can't set the superclass of oo::object or oo::class; they're special.)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Pending"
- username: "dkf"
Ticket change [4abac5098b] (rid 133384) by dkf on 2013-08-20 10:52:43:
- closedate changed to: "2456524.95328094"
- comment changed to:
Hi, I use ActiveState Tcl 8.6.0.0.295132 Beta 6. I have a class with a static method that changes the list of its baseclasses: self method DISABLE_SUPERCLASSES {} \ { oo::define SNAPSHOT_ELEMENT superclass "" } self export DISABLE_SUPERCLASSES This yields the error: " does not refer to an object". TclOO does not accept the empty string. I might not use the right technique here... But is there a way to remove all superclasses of a given class? As a workaround, I can create a dummy class and make it its superclass... Or I can use oo::object as the dummy base class. Thanks, Etienne - icomment:
Current code now enforces that there is <i>always</i> a superclass (it was possible to make this not be the case, which was a catastrophic bug).
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"
- username: "dkf"