Jump to content

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

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
({{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'':
Cookies help us deliver our services. By using our services, you agree to our use of cookies.