Differences

This shows you the differences between the selected revision and the current version of the page.

at:tutorial:actors 2020/02/05 21:26 at:tutorial:actors 2020/02/05 21:26 current
Line 193: Line 193:
def sum := calculator<-add(1,2); def sum := calculator<-add(1,2);
</code> </code>
 +
==== Enabling futures ==== ==== Enabling futures ====
 +
 +In AmbientTalk, futures are not native to the language. However, because of AmbientTalk's reflective infrastructure, it is possible to build futures on top of the language. The system library shipped with AmbientTalk contains exactly this: a reflective implementation that adds futures to the language kernel. This implementation can be found in the file ''at/lang/futures.at''.
To enable futures, it suffices to import the futures module and to enable it, as follows: To enable futures, it suffices to import the futures module and to enable it, as follows:
 
 
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki