Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "basilik99"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "Cannot remove all superclasses of a TclOO class"
  12. type changed to: "Bug"