comparison tests/mini/nested5.d @ 468:45a67b6f1310

Removed the 'needsstorage' thing from Dsymbol. Arguments are not always given storage when applicable. This is not longer treat specially in this regard. Code for accessing nested variables and contexts rewritten. Probably more. Fairly well tested.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 04 Aug 2008 02:59:34 +0200
parents 1bb99290e03a
children
comparison
equal deleted inserted replaced
467:261b05cf4d1c 468:45a67b6f1310
9 9
10 class C 10 class C
11 { 11 {
12 void func() 12 void func()
13 { 13 {
14 printf("Hello world %d\n", i++); 14 printf("Hello nested world %d\n", i++);
15 //i++; 15 //i++;
16 } 16 }
17 } 17 }
18 18
19 scope c = new C; 19 auto c = new C;
20 c.func(); 20 c.func();
21 printf("i = %d\n", i);
21 assert(i == 44); 22 assert(i == 44);
22 } 23 }