[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

12.2.6.7 Function Calls

A function is a name for a particular sequence of statements. It is defined using special definition syntax (see section Function Definitions). Normally a function return some value. The way to use this value in an expression is with a function call expression, which consists of the function name followed by a comma-separated list of arguments in parentheses. The arguments are expressions which provide values for the function call environment (see section Positional Parameters. When there is more than one argument, they are separated by commas. If there are no arguments, write just ‘()’ after the function name. Here are some examples:

 
foo()             no arguments
bar(1)            one argument
bar(1, "string")  two arguments

This document was generated by Sergey Poznyakoff on December, 6 2008 using texi2html 1.78.