Runtime code reloading in D, part 1
bearophile
bearophileHUGS at lycos.com
Sun Dec 30 05:27:45 PST 2012
Benjamin Thaut:
> http://3d.benjamin-thaut.de/?p=25
>The pointer to the RTTI information for each member is a
>workaround for a strange bug I encountered. For POD structs the
>rtInfo template will be instancated, but for some reason you can
>not query the results at runtime. It is possible that the linker
>stripps the information away but I could not yet investigate
>this issue further. If I can not query the RTTI information at
>runtime I fallback to the RTTI info pointer stored in the “next”
>member of thMemberInfo.<
This seems one of the situations where knowing "why" is almost
more important than "doing": understanding the cause, and maybe
even fixing it, will help future D programmers.
Bye,
bearophile
More information about the Digitalmars-d-announce
mailing list