Skip to content
Tcl Source Code History Of Ticket 3487424
Login

History Of Ticket 3487424

Artifacts Associated With Ticket 3487424

  1. Ticket change [9f0584a82b] (rid 96572) by basilik99 on 2012-02-13 23:20:53:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "basilik99"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to: "Cannot remove all superclasses of a TclOO class"
    12. type initialized to: "Bug"
  2. Ticket change [09356c4f62] (rid 89680) by dkf on 2012-02-14 17:21:23:

    1. closedate changed to: "2012-02-14T10:21:23"
    2. closer changed to: "dkf"
    3. 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.)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Pending"
    8. username: "dkf"
  3. Ticket change [4abac5098b] (rid 133384) by dkf on 2013-08-20 10:52:43:

    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"