Dealing with raw types as attributes

Kagamin spam at here.lot
Fri Nov 2 08:37:42 UTC 2018


On Thursday, 1 November 2018 at 16:14:45 UTC, Neia Neutuladh 
wrote:
> The spec says that a user-defined attribute must be an 
> expression, but DMD accepts a wide range of things as UDAs:
>
>   struct Foo { string name = "unknown"; }
>   @Foo int bar;

IIRC symbol reference is a primary expression.


More information about the Digitalmars-d-learn mailing list