Overview
| Artifact ID: | 4abac5098b1669c3500779a10e6128b8b715f9ab |
|---|---|
| Ticket: | 3487424fffffffffffffffffffffffffffffffff
Cannot remove all superclasses of a TclOO class |
| User & Date: | dkf on 2013-08-20 10:52:43 |
Changes
- 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"