Content deleted Content added
m →External links: HTTP to HTTPS for SourceForge |
m →State and objects: Adding wikilinks |
||
Line 282:
=== State and objects ===
It is again possible to extend the declarative model to support state and [[object-oriented programming]] with very simple semantics. To create a new mutable data structure called Cells:
<syntaxhighlight lang="erlang">
local A X in
Line 291:
</syntaxhighlight>
With these simple semantic changes, the whole object-oriented paradigm can be supported. With a little [[syntactic sugar]], OOP becomes well integrated in Oz.
<syntaxhighlight lang="
class Counter
attr val
|