next

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

See Also

tailcall punches through next , 2015-04-08
An issue in which the interaction of next and tailcall is discussed.

Synopsis

In TclOO/Tcl 8.6:

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

Description

next tailcalls the next method in the class hierarchy. It is inspired by XOTcl's "next" command which, in contrast, does add an evaluation level.

nextto selects the method according to class.