CT info about class' children

Yuriy via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 23 23:37:26 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

I guess this could be done without modifying the compiler, just 
extend RTInfo(T) to support this UDA, but there's a problem with 
attributes. They don't propagate to class' children, thus they 
can't solve the main question of this topic.


More information about the Digitalmars-d mailing list