Updated 2018-05-23 11:39:29 by APN

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

See Also  edit

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

Synopsis  edit

In TclOO/Tcl 8.6:
next ?arg ...?
nextto class ?arg ...?

Description  edit

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.