routine

Difference between version 6 and 7 - Previous - Next
A '''routine''' is a modular unit of a [program].  In Tcl, there is a routine
associated with each available [procedure].  To [eval%|%evaluate] a command,
Tcl uses the first [word] of the command to find the procedure and execute the
associated routine.  Many [Tcl Commands%|%built-in commands] are implemented as
[C] functions.  In the case of a procedure defined by `[proc]`, the primary
function of the routine is to evaluate the body of the procedure.

** See Also **

   [lambda]:   About implementing at [script] level a routine that isn't a [procedure].

<<categories>> glossary