Skip to content
Tcl Source Code View Ticket
Login

View Ticket

next does not fail when superclass doesn't have the method

Closed / Fixed1998244fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-06-19 21:05:13
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.
dkfplain2008-06-20 04:33:34
Logged In: YES 
user_id=79902
Originator: NO

Fixed to work as specified in the TIP.
Log in (anonymous is fine) to add a comment.