introspection woes (2)

Lloyd Dupont ld-REMOVE at galador.net
Mon Jun 13 05:56:13 PDT 2011


Thanks Robert!

Mm.. can you (per chance!) share some code?
I'm a newbie and compile time reflection is something which eludes me (so 
far...)!


"Robert Clipsham"  wrote in message news:it4vp1$1n5q$1 at digitalmars.com...
>
> Anyway of ... making the runtime update xgetMembers?

My understanding is that xgetMembers is never filled in due to the
overhead it would add. You can recompile dmd to support it, but that's a
pain. The work around I use is to  put a mixin in every class I want to
use which uses compile time reflection to build an array which I can
access at runtime. Not the most elegant solution. Perhap's a bug report
needs opening for this if one isn't already open.



More information about the Digitalmars-d-learn mailing list