Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. closedate changed to: "2456524.95328094"
  2. 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
    
  3. 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).
    
  4. login: "dkf"
  5. mimetype: "text/html"
  6. resolution changed to: "Fixed"
  7. severity changed to: "Minor"
  8. status changed to: "Closed"
  9. username: "dkf"