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 12:51, 19 May 2009
, 15 years ago→{{header|Tcl}}: having killed the nl in the works with template, a lot of "works with" will be on the same line instead of be stacked
({{Omit From|ALGOL 68}} variables names need to be known prior to program being run.) |
m (→{{header|Tcl}}: having killed the nl in the works with template, a lot of "works with" will be on the same line instead of be stacked) |
||
Line 269:
=={{header|Tcl}}==
{{works with|Tcl|8.6}}
{{works with|Tcl|8.5}} and the [http://wiki.tcl.tk/TclOO TclOO package]
The code below uses the fact that each object is implemented as a namespace, to add a ''time'' variable to an instance of ''summation'':
|