Add a variable to a class instance at runtime: Difference between revisions
Content added Content deleted
(Pascal entry) |
|||
Line 340:
ELENA does not support adding a field at run-time but it can be simulated with the help of a mix-in.
ELENA
<syntaxhighlight lang="elena">import extensions;
class Extender : BaseExtender
{
this
}
public program()
{
}</syntaxhighlight>
{{out}}
|