Too many attributes?

Christian Kamm kamm.incasoftware at shift-at-left-and-remove-this.de
Fri Apr 25 13:38:15 PDT 2008


> And then there are delegates. I have mentioned in a previous thread
> (called something like "big hole in const system") that big problems
> exist because attributes can be applied to functions /but not to
> delegates/. That is, we cannot declare
> 
>         pure invariant invariant(C) delegate(invariant(C) c) nothrow dg;

For what it's worth, the D spec 2.013 allows delegates to have the pure and
nothrow attributes. (Declarations: BasicType2 and Expressions:
FunctionLiteral)

Christian



More information about the Digitalmars-d mailing list