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 [2009/06/05 15:32] – added tvcutsemat:tutorial:basic [2011/05/23 13:36] tvcutsem
Line 251: Line 251:
 AmbientTalk borrows its block syntax from languages like Smalltalk and Self, where the role of the curly braces is played by square brackets, i.e. ''[ args | body ]''. In AmbientTalk, the ''<parlist>'' is only used to denote parameters to the block, not also for temporary variables as in Smalltalk. AmbientTalk borrows its block syntax from languages like Smalltalk and Self, where the role of the curly braces is played by square brackets, i.e. ''[ args | body ]''. In AmbientTalk, the ''<parlist>'' is only used to denote parameters to the block, not also for temporary variables as in Smalltalk.
 </note> </note>
 +
  
 ===== Keywords ===== ===== Keywords =====
Line 282: Line 283:
 </code> </code>
  
-However, it is impossible to directly call or define a keyworded function in a canonical style.+It is also possible to invoke keyworded functions using the canonical function application syntax: 
 + 
 +<code> 
 +foo:bar:(1,2) 
 +</code> 
  
 ===== Native Data Types ===== ===== Native Data Types =====
at/tutorial/basic.txt · Last modified: 2020/02/09 22:05 by elisag