Version 6 of next

Updated 2011-05-25 14:13:05 by dkf

Command used in TclOO and XOTcl to call the next method in a method call chain. Syntax is different between two extensions (mainly because TclOO requires Tcl 8.5) and semantics is slightly different (TclOO's next effectively does an uplevel inside itself).

Syntax

In TclOO/Tcl 8.6:

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

The nextto command takes an additional class argument that specifies which implementation on the call chain to go to.