Tcl · Lesson 5

Procedures: proc, defaults, args, upvar and apply

Define commands with proc, add default and variable arguments, reach caller and global variables with upvar and global, and run lambdas with apply.

Lessons · Tcl · Lesson 5 of 10

Procedures: proc, defaults, args, upvar and apply

Define commands with proc, add default and variable arguments, reach caller and global variables with upvar and global, and run lambdas with apply.

Illustration for Tcl
Define commands with proc, add default and variable arguments, reach caller and global variables with upvar and global, and run lambdas with apply.