CT info about class' children

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 24 02:28:09 PDT 2014


On Thursday, 24 April 2014 at 06:08:11 UTC, Jacob Carlborg wrote:
> 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

This is technically almost identical to having a special _RTInfo 
template within the type, but it's a cleaner solution.


More information about the Digitalmars-d mailing list