const/immutable on delegates
Tofu Ninja via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 3 04:08:44 PDT 2015
On Friday, 3 July 2015 at 10:59:43 UTC, deadalnix wrote:
> They can't, it is not implemented. It should e possible and
> pure is broken for them.
void main(string[] args)
{
void foo() immutable
{
}
}
That compiles and works as expected, it seems to be implemented
at least for nested functions. I didn't know about it before
because it wasn't documented anywhere and it does not work for
anonymous delegates. >.>
More information about the Digitalmars-d
mailing list