Version 7 of next

Updated 2014-03-01 15:38:58 by pooryorick

next and nextto ,a built-in Tcl command, in TclOO allow a method to call an upstream method which it has overridden.

Synopsis

In TclOO/Tcl 8.6:

next ?arg ...?
nextto class ?arg ...?

Description

next in TclOO is inspired by XOTcl's eponymous comand, and the semantics are slightly different. TclOO's next effectively does an uplevel inside itself).

nextto selects the method according to class.