Re: fake class in OE
- Posted by katsmeow Feb 25, 2021
- 997 views
Only a hint
Please, continue.
A constant must be set instead.
I hope i understand your meaning and i do not wander outside scope...
Ah, but there is if you use a preprocessor that re-writes the code. I made "varname" and varname access the same data for small amounts of shared_vars by simply using a case stack. And to know the name of the variable in OE's type system, you need only comment out the programmer's declaration, and insert your own unique type, which only that varname is type-checked with, ergo in that type-check code, it can be only one varname.
On startup, all the known data can be loaded as strings (vs enumerations in code?), and a case stack can equate "varname" and varname if necessary. Sure it can be done differently if OE/Phix had a variable_id().
Kat