Add a variable to a class instance at runtime: Difference between revisions

Content added Content deleted
m (Lingo added)
Line 327: Line 327:
ELENA does not support adding a field at run-time but it can be simulated with the help of a mix-in.
ELENA does not support adding a field at run-time but it can be simulated with the help of a mix-in.


ELENA 3.2:
ELENA 3.4:
<lang elena>import extensions.
<lang elena>import extensions.


Line 340: Line 340:
}
}


program =
public program =
[
[
var anObject := 234.
var anObject := 234.