Version 10 of next

Updated 2014-06-14 18:40:57 by escargo

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

Synopsis

In TclOO/Tcl 8.6:

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

Description

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

nextto selects the method according to class.