Jump to content

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

m (omit Clojure)
Line 326:
ELENA does not support adding a field at run-time but it can be simulated with the help of a group object
<lang elena>#define system.
#define extensions.
 
#class Extender
Line 356 ⟶ 357:
anObject set &foo:"bar".
 
console <<consoleEx write:anObject << :".foo=" << :(anObject foo).
 
console readChar.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.