Category:Elena: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 12:
ELENA is a general-purpose, object-oriented, polymorphic language with late binding. It features message dispatching/manipulation, dynamic object mutation, a script engine / interpreter and mix-ins.
 
## The simplest program
===
 
To create a simple console program we have to declare the **program** symbol in the project root namespace:
Line 57 ⟶ 58:
**Console::write** method is similar to **writeLine** except that it writes to the output screen without a new line character.
 
## Declaring a variable
===
 
A variable can be declared in an assignment statement starting with **var** attribute:
Line 129 ⟶ 131:
system'startUp(5)
## Basic Types
===
 
### The Boolean Type
=====
 
Boolean type is used in conditional operations and may accept only two Boolean literals - **true** and **false**.
Anonymous user