User Tools

Site Tools


at:tutorial:basic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
at:tutorial:basic [2007/04/04 11:25] elisagat:tutorial:basic [2007/04/04 11:51] – * elisag
Line 86: Line 86:
 </code> </code>
  
-Variables and other functions defined locally to a function are only visible in the scope of the function where there were defined. Notice also that a function name can also be used just to refer the function but without calling it.+Variables and other functions defined locally to a function are only visible in the scope of the function where there were defined. 
 +  
 + 
 +The function name can also be used just to refer the function but without calling it. TODO!
  
 Unlike Pico, AmbientTalk doesn't support function assigment. However, one can assign functions to variables. This means that internally a closure will be created and assigned to the variable. What follows is an example of such manipulation: Unlike Pico, AmbientTalk doesn't support function assigment. However, one can assign functions to variables. This means that internally a closure will be created and assigned to the variable. What follows is an example of such manipulation:
at/tutorial/basic.txt · Last modified: 2020/02/09 22:05 by elisag