When the function is called, the arguments are given as
- variables $1 ... $n to the Tcl procedure body. For example,
- a function
+ variables $1 ... $n to the
+ Tcl procedure body. The result is returned
+ from the Tcl code in the usual way, with a return
+ statement. For example, a function
returning the higher of two int4 values could be defined as:
' LANGUAGE 'pltcl';
+ To return a NULL value from a PL/Tcl function, execute
+ return_null.
+
+
Composite type arguments are given to the procedure as Tcl arrays.
The element names
in the array are the attribute names of the composite