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

m
m (→‎{{header|Phix}}: added syntax colouring the hard way)
Line 888:
</lang>
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
Mathematica doesn't rally have classes, so it doesn't have class variables. However, many rules can be applied to a single tag, so it has some aspects similar to a class. With that definition, adding a class variable is similar to adding a rule:
<lang Mathematica>
1,111

edits