comparison tangotests/k.d @ 133:44a95ac7368a trunk

[svn r137] Many fixes towards tango.io.Console working, but not quite there yet... In particular, assertions has been fixed to include file/line info, and much more!
author lindquist
date Mon, 14 Jan 2008 05:11:54 +0100
parents
children
comparison
equal deleted inserted replaced
132:1700239cab2e 133:44a95ac7368a
1 interface Inter
2 {
3 int func();
4 }
5
6 extern(C) int printf(char*, ...);
7
8 class InterClass : Inter
9 {
10 int func()
11 {
12 return printf("InterClass.func()\n");
13 }
14 }
15
16 alias int delegate() dg_t;
17
18 void main()
19 {
20 scope c = new InterClass;
21
22 {
23 Inter i = cast(Inter)c;
24 {
25 dg_t dg = &i.func;
26 {
27 int j = dg();
28 }
29 }
30 }
31 }