ELENA is a general-purpose language with late binding. It is multi-paradigm, combining features of functional and object-oriented programming. Rich set of tools are provided to deal with message dispatching : multi-methods, message qualifying, generic message handlers, run-time interfaces
B;
C
{
B cast()
= new B();
}
singleton E
{
load(params B[] o)
{
for(int i := 0, i < o.Length, i += 1)
{
console.writeLine(o[i])
}
}
}
public program()
{
var b := new B();
var c := new C();
var e := E.load(b,c);
}
The following code should work:
The output should be