Anonymous user
Add a variable to a class instance at runtime: Difference between revisions
Add a variable to a class instance at runtime (view source)
Revision as of 18:15, 16 November 2011
, 12 years agono edit summary
m (→{{header|Pike}}: objects not classes) |
No edit summary |
||
Line 338:
return 0;
}</lang>
=={{header|Octave}}==
Octave is dynamically typed, and can have fields added in two methods:
<lang octave>
% Given struct "test"
test.b=1;
test = setfield (test, "c", 3);
</lang>
=={{header|Oz}}==
|