Mercurial > projects > ldc
view tangotests/t.d @ 164:a64becf2a702 trunk
[svn r180] Fixed complex negation, and tango.math.Math now compiles.
author | lindquist |
---|---|
date | Mon, 05 May 2008 20:28:59 +0200 |
parents | 336ec4f4bbb3 |
children |
line wrap: on
line source
interface MyInterface { int func(); } class MyClass : MyInterface { int var; int func() { return var; } } void func1(MyInterface i) { int delegate() dg = &i.func; func2(dg); } extern(C) int printf(char*, ...); void func2(int delegate() dg) { int i = dg(); printf("%d\n", i); } void main() { auto c = new MyClass; c.var = 42; func1(c); }