annotate tests/mini/classes11.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 1bb99290e03a
children
rev   line source
lindquist@128 1 module classes11;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@128 3
lindquist@128 4 void main()
lindquist@128 5 {
lindquist@128 6 static class C
lindquist@128 7 {
lindquist@128 8 void func()
lindquist@128 9 {
lindquist@128 10 printf("Hello world\n");
lindquist@128 11 }
lindquist@128 12 }
lindquist@128 13
lindquist@128 14 scope c = new C;
lindquist@128 15 c.func();
lindquist@128 16 }