Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-06-20
04:33 • Closed ticket [1998244fff]: next does not fail when superclass doesn't have ... artifact: f199c9c2e3 user: dkf
2008-06-19
21:05 • New ticket [1998244fff]. artifact: f6847029da user: mpc_janssen

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.