Dealing with raw types as attributes
Nicholas Wilson
iamthewilsonator at hotmail.com
Fri Nov 2 00:36:18 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:
>
Indeed UDA are odd beasts:
https://issues.dlang.org/show_bug.cgi?id=19127
> What do you do to handle this?
@Foo() int bar;
instead of
@Foo int bar;
https://run.dlang.io/is/3USj6h
More information about the Digitalmars-d-learn
mailing list