Ticket Hash: | 3e6d655e791b9b2cd246a9ffa8916666c65b6a88 | |||
Title: | Itcl 4 no longer permits method named "info" | |||
Status: | Closed | Type: | Code_Defect | |
Severity: | Important | Priority: | Immediate | |
Subsystem: | Resolution: | Fixed | ||
Last Modified: | 2016-09-16 02:41:31 | |||
Version Found In: | trunk | |||
User Comments: | ||||
dgp added on 2016-08-26 12:39:47:
% package require Itcl 3 3.4 % itcl::class C {method info {} {}} % package require Itcl 4.0.5 % itcl::class C {method info {} {}} "info" already defined in class "::C" This will degrade the ability of code written for Itcl 3 to migrate to Itcl 4 if it contains methods named 'info'. dgp added on 2016-09-16 02:41:31: Fixed on trunk. There's non-negligible risk that the changes to fix this introduced new bugs so testing is encouraged. So long as there's not new breakage though, I think this is a good path forward to implement more of Itcl's builtins via inheritance from a TclOO superclass, instead of via methods bolted on to each Itcl object. |