Reflecting without reflection... kinda.
Monkey Forums/Monkey Programming/Reflecting without reflection... kinda.
| ||
| Mark, Would it be possible to make importing reflection not actually reflect? Example: maincode.monkey:
Import reflection
Import anotherfile
Class Foo
End
Function Main()
Local b := New Bar
b.cls = GetClass("Foo")
Endanotherfile.monkey:
Import just_the_reflection_types
Class Bar
Field cls:ClassInfo
EndIn this situation I've defined a field as ClassInfo, but haven't actually triggered the reflector for this file. I know I could use the reflection filter, but it seems kinda messy. Any possibility this could happen? |