[Issue 15306] Delegates with shared context can have unshared aliasing

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 3 03:25:55 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15306

--- Comment #6 from anonymous4 <dfj1esp02 at sneakemail.com> ---
How about const qualifier?

void f()
{
    int i = 42;
    auto dg = delegate void() const { i=0; }; //ok?
}

--


More information about the Digitalmars-d-bugs mailing list