Comment #0 by kirklin.mcdonald — 2006-12-17T21:53:01Z
The following code works in DMD 0.177, but not in GDC 0.20:
class A {
void foo() { }
}
void main() {
A a = new A;
void delegate() dg;
dg.ptr = a;
dg.funcptr = &A.foo;
dg();
}
C:\Projects\test>gdc test.d
test.d:8: Error: (dg).ptr is not an lvalue