Runtime reflection

Jascha Wetzel firstname at mainia.de
Fri Sep 21 04:55:08 PDT 2007


dennis luehring wrote:
> Jascha Wetzel schrieb:
>> Here is a simple way of adding __traits based runtime reflection to D 
>> classes:
>>
>> http://mainia.de/classinfoex.d
>> (requires DMD 2.004)
>>
>> It does not increase the class instance size.
>> All extra info is stored statically.
>>
>> See the doc-comment for details.
> 
> do you see way to extend your lib with the ability
> to "see" the derivation-hierachy?
> 
> ciao dennis

atm, i don't see a way. the current classinfoex version adds all members 
to a class' reflection data. that way it's enough to add "mixin 
Reflect;" to a derived class.



More information about the Digitalmars-d-announce mailing list