So, User-Defined Attributes

Timon Gehr timon.gehr at gmx.ch
Sun Jan 6 14:44:09 PST 2013


On 01/06/2013 07:24 PM, Philippe Sigaud wrote:
>
> Can attributes be defined by templates arguments?
>
>
> @(T) class C(T) : T { }
>
> Answer: no. OK.

This works:

template C(T){ @T class C : T { } }

The above appears to annotate the template itself, which is 
inconsistent. You should probably file a bug report.


More information about the Digitalmars-d mailing list