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 08:49, 12 November 2009
, 14 years ago→{{header|J}}: Add lang tags
(Undo revision 67005 by 164.67.199.150 (Talk)Maybe discuss before invalidating other entries?) |
m (→{{header|J}}: Add lang tags) |
||
Line 134:
Simple assignment will add variables to classes.
<lang j> C=:<'exampleclass'
V__C=: 0
OBJ=:conew 'exampleclass'
Line 143:
W__C=: 0
W__OBJ
0</lang>
=={{header|JavaScript}}==
|