Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f6847029dab96a31c10488f1fd064fc5707f3291
Ticket: 1998244fffffffffffffffffffffffffffffffff
next does not fail when superclass doesn't have the method
User & Date: mpc_janssen on 2008-06-19 21:05:13
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The following script does not fail
    
    oo::class create A  {
    }
    oo::class create B {
    superclass A
    method a {} {puts B_a ; next }
    }
    
    B create b
    b a
    
    because class A doesn't define method a, this behavior is incorrect. Tip 257 specifies:
    
    It is an error to invoke the next command when there is no superclass definition of the current method.
    
  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: "mpc_janssen"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to:
    next does not fail when superclass doesn't have the method
    
  12. type changed to: "Bug"