AmbientTalk/2 Language Reference

How to read the documentation: the above language reference is a modified Javadoc documentation extracted from the interpreter’s source code. The documentation talks about classes, packages and interfaces. Of course, these concepts do not exist in AmbientTalk. However, at the implementation-level, a class in the interpreter corresponds to an abstract data type provided to the AmbientTalk programmer. Its methods correspond to the methods which the AmbientTalk programmer can invoke upon them. Thus, if you want to look up what methods are applicable on numbers, check the methods of class Number.

Methods that take an Object[] as an argument should be interpreted as taking an arbitrary number of arguments (i.e. an @args parameterlist in AmbientTalk).

Note that the class hierarchy does not accurately reflect the delegation hierarchy in between objects. All objects eventually delegate to Nil, so all methods defined on Nil are applicable on all objects.

The language reference documents:

  •*: data types pertaining to AmbientTalk actors.
  • the methods available on native data types
  • the structure of abstract syntax tree objects (for metaprogramming)
  • the object marked LexicalRoot documents all operations available in the global lexical scope (top-level definitions, accessible unqualified). The object marked System documents the system native object.

The most important functionality available in the system library shipped with the distribution is summarized in the tutorial’s appendix.

at/reference/reference.txt · Last modified: 2009/11/10 18:03 by tvcutsem
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki