Anonymous user
Category:Elena: Difference between revisions
→Declaring a variable
Line 67:
The assigning value can be an expression itself:
public program =
[
console writeLine("Hello!"); writeLine("How are you?").
Line 75:
ELENA is a dynamic language and in normal case we may not specify the variable type:
public program =
[
var s := "Hello".
Line 91:
But it is still possible to specify the variable expected type:
console writeLine(s).
Line 104:
literal s := "Hello".
s := T<literal>(2).
Why? ELENA is a dynamic language and in most cases resolves the types in run-time. So our code will be actually
Line 110:
literal s := "Hello".
s :=
It is guaranteed that the result of
The output will be:
|