CT info about class' children

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 23 23:08:11 PDT 2014


On 24/04/14 00:29, Martin Nowak wrote:

> Looks fairly interesting, because it partly solves the issue to allow
> custom rtinfo.

I don't like this solution for custom RTInfo. It requires you to change 
your type. I would rather modify the compiler to do something like this:

* Add a UDA to druntime: "core.attributes.rtInfo"

* If any template has the core.attributes.rtInfo UDA attached to itself, 
instantiate that as is done with core.RTInfo

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list