Overview
| Artifact ID: | 9f0584a82b4ec0c5d266701bc2fc8282104261a9 |
|---|---|
| Ticket: | 3487424fffffffffffffffffffffffffffffffff
Cannot remove all superclasses of a TclOO class |
| User & Date: | basilik99 on 2012-02-13 23:20:53 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "basilik99"
- subsystem changed to: "35. TclOO Package"
- title changed to: "Cannot remove all superclasses of a TclOO class"
- type changed to: "Bug"