at:tutorial:basic
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
at:tutorial:basic [2007/04/05 14:49] – elisag | at:tutorial:basic [2007/04/06 08:08] – * elisag | ||
---|---|---|---|
Line 109: | Line 109: | ||
</ | </ | ||
- | Variables and functions defined locally to functions are only visible in the scope of the function where there were defined. | + | This example also illustrates how a function can be made private by means of lexical scope. |
=== Variable-Length Argument Functions === | === Variable-Length Argument Functions === | ||
Line 144: | Line 144: | ||
>>6 | >>6 | ||
</ | </ | ||
- | |||
===== Closures ===== | ===== Closures ===== | ||
- | The function name can also be used just to refer the function | + | As you have probably noticed in the previous examples, |
+ | |||
+ | The function name can be thus used to refer the function | ||
===== Blocks ===== | ===== Blocks ===== | ||
Line 179: | Line 181: | ||
>>3 | >>3 | ||
</ | </ | ||
- |
at/tutorial/basic.txt · Last modified: 2020/02/09 22:05 by elisag