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

Content deleted Content added
Latitude language added
Root (talk | contribs)
add {{omit from}} Delphi, Free Pascal, and Object Pascal
Line 1: Line 1:
{{task|Object oriented}}
{{task|Object oriented}}

{{omit from|Rust}}
Demonstrate how to dynamically add variables to an object (a class instance) at runtime.
Demonstrate how to dynamically add variables to an object (a class instance) at runtime.


Line 68: Line 68:
I am Class with 1
I am Class with 1
</pre>
</pre>

=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==
{{works with|AutoHotkey_L}}
{{works with|AutoHotkey_L}}
Line 1,819: Line 1,820:
{{omit from|C++}}
{{omit from|C++}}
{{omit from|Clojure}}
{{omit from|Clojure}}
{{omit from|Delphi}}
{{omit from|F Sharp}}
{{omit from|F Sharp}}
{{omit from|Fortran}}
{{omit from|Fortran}}
{{omit from|Free Pascal}}
{{omit from|gnuplot}}
{{omit from|gnuplot}}
{{omit from|GUISS}}
{{omit from|GUISS}}
Line 1,833: Line 1,836:
{{omit from|Make}}
{{omit from|Make}}
{{omit from|NetRexx}}
{{omit from|NetRexx}}
{{omit from|Object Pascal}}
{{omit from|OCaml}}
{{omit from|OCaml}}
{{omit from|Octave}}
{{omit from|Octave}}
Line 1,842: Line 1,846:
{{omit from|TI-83 BASIC}} {{omit from|TI-89 BASIC}} <!-- Does not have objects. -->
{{omit from|TI-83 BASIC}} {{omit from|TI-89 BASIC}} <!-- Does not have objects. -->
{{omit from|Retro}}
{{omit from|Retro}}
{{omit from|Rust}}
{{omit from|UNIX Shell}}
{{omit from|UNIX Shell}}
{{omit from|ZX Spectrum Basic}} <!-- Does not have objects. -->
{{omit from|ZX Spectrum Basic}} <!-- Does not have objects. -->