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
{
    ...
}
---

Reply via email to