Updated 2017-11-05 11:10:22 by pooryorick

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

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.