Add a variable to a class instance at runtime: Difference between revisions
Content added Content deleted
m (PhixClass) |
|||
Line 1,243: | Line 1,243: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
{{libheader| |
{{libheader|Phix/Class}} |
||
Dynamic classes are really just wrappers to per-instance dictionaries, not entirely unlike Go/Kotlin/etc, but with slightly nicer syntax.<br> |
Dynamic classes are really just wrappers to per-instance dictionaries, not entirely unlike Go/Kotlin/etc, but with slightly nicer syntax.<br> |
||
Attempting to fetch/store "jelly" on a non-dynamic class would trigger a fatal error, unless said field had been explictly defined. |
Attempting to fetch/store "jelly" on a non-dynamic class would trigger a fatal error, unless said field had been explictly defined. |