Blog post: What D got wrong
dayllenger
dayllenger at protonmail.com
Thu Dec 13 20:15:04 UTC 2018
On Thursday, 13 December 2018 at 18:29:39 UTC, Adam D. Ruppe
wrote:
> I wanna show you something:
>
> /// Static convenience functions for common color names
> nothrow pure @nogc @safe
> static Color transparent() { return Color(0, 0, 0, 0); }
Enums could resolve this particular case.
My thought on this situation is to implement tuple expansion in
attributes just like in function parameters, and complete
DIP1012. Then we can write so:
---
alias noble = AliasSeq!(pure, nothrow, nogc, safe);
int queryStuff() const @noble
{
...
}
---
More information about the Digitalmars-d-announce
mailing list