https://issues.dlang.org/show_bug.cgi?id=9149 --- Comment #3 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> --- How about this? class A { int i; const void delegate() dg; this() pure { dg=&f; } void f(){ i++; } } unittest { const A a = new A; a.dg(); } --