Re: fake class in OE

new topic     » goto parent     » topic index » view thread      » older message » newer message
mitgedanken said...

Only a hint

Namespaces can be used in routine_id()

Please, continue.

mitgedanken said...

But for now there is no way to get the namespace programmatically.
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu