routine

Difference between version 3 and 4 - Previous - Next
A '''routine''' is a modular unit of a [program].  In Tcl, one[Dodekalogue%|%routine] is associated with each [command].  The official
documentation currently uses the term "[command procedure]" in place of the
term "routine".  In order to
 evaluate a command, Tcl uses the first [word] of a 
command to find and execute
 the associated routine.  Many [Tcl 
Commands%|%built-in commands] are
 implemented as [C] functions.  In the case of 
a [proc%|%procedure], the primary
 function of the routine is to evaluate the 
body of the procedure.

<<categories>> glossary