On Tuesday, 24 June 2014 at 12:46:10 UTC, AG wrote:
since D has Attribute lists e.g. @("string", 7, foo, bar)
make them work with build-in attributes or convert build-in
attributes to UDA's, then you can use them as single attributes
or with attribute lists
struct pure;
struct safe;
struct nothrow;
...
@pure @safe @nothrow
or
@(pure, safe, nothrow)
Hmm, didn't know you could do that with UDAs, certainly looks
better than this:
https://github.com/D-Programming-Language/phobos/blob/master/std/math.d#L385
Maybe we should add another @nogc just to make sure. ;) That
line's going to look even worse if DIP 64 goes through and more
@s are added.