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 [2008/03/12 17:17] – * tvcutsemat:tutorial:basic [2008/03/12 17:18] – * tvcutsem
Line 415: Line 415:
 Control flow constructs are defined in the lexical root of AmbientTalk. The lexical root is an object containing globally visible native methods (i.e. it is the top-level environment). We have already seen in the previous sections examples of use of the foreach and if/then structures. A list of traditional control flow structures defined in AmbientTalk is shown below: Control flow constructs are defined in the lexical root of AmbientTalk. The lexical root is an object containing globally visible native methods (i.e. it is the top-level environment). We have already seen in the previous sections examples of use of the foreach and if/then structures. A list of traditional control flow structures defined in AmbientTalk is shown below:
 <code> <code>
-if: booleanCondition then: consequent +if: booleanCondition then: consequentClosure 
-if: booleanCondition then: consequent else: alternative+if: booleanCondition then: consequentClosure else: alternativeClosure
 while: conditionClosure do: body while: conditionClosure do: body
 foreach: iteratorClosure in: table foreach: iteratorClosure in: table
at/tutorial/basic.txt · Last modified: 2020/02/09 22:05 by elisag