comparison tests/mini/interface3.d @ 797:340acf1535d0

Removed KDevelop3 project files, CMake can generate them just fine! Fixed function literals in static initializers. Changed alignment of delegates from 2*PTRSIZE to just PTRSIZE. Changed errors to go to stderr instead of stdout. Fairly major rewriting of struct/union/class handling, STILL A BIT BUGGY !!!
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sat, 29 Nov 2008 21:25:43 +0100
parents 1bb99290e03a
children
comparison
equal deleted inserted replaced
796:6e7a4c3b64d2 797:340acf1535d0
10 class C : I 10 class C : I
11 { 11 {
12 int i = 42; 12 int i = 42;
13 override void func() 13 override void func()
14 { 14 {
15 printf("hello %d\n", i); 15 printf("hello %d from %p\n", i, this);
16 i++; 16 i++;
17 } 17 }
18 } 18 }
19 19
20 void main() 20 void main()
21 { 21 {
22 scope c = new C; 22 auto c = new C;
23 {c.func();} 23 {c.func();}
24 { 24 {
25 I i = c; 25 I i = c;
26 {i.func();} 26 {i.func();}
27 } 27 }