Version 1 of procedure

Updated 2004-09-20 22:04:56

[Discuss the definition of procedure here]

RS: A procedure is a script with an argument list (in other words, a lambda) bound to a command name, by which it can be called. In Tcl these are defined with the proc command, for example:

 proc myproc {arg1 arg2} {
    # do something here, e.g.
    puts arg1:$arg1,arg2:$arg2
 }

Category Glossary