Too many attributes?

Janice Caron caron800 at googlemail.com
Fri Apr 25 14:14:46 PDT 2008


On 25/04/2008, Christian Kamm
<kamm.incasoftware at shift-at-left-and-remove-this.de> > > For what it's
worth, the D spec 2.013 allows delegates to have the pure and
> nothrow attributes. (Declarations: BasicType2 and Expressions:
> FunctionLiteral)

Ooh nice! Thanks for pointing that out.

But they need to be able to take const and invariant attributes too.

(And come to think of it, if you allowed delegates to be declared
static then we could lose the "function" keyword altogether, as
"delegate static" could take over that role. Maybe that's pushing
things too far though).



More information about the Digitalmars-d mailing list