Mercurial > projects > ldc
annotate tangotests/q.d @ 169:2df270e1ba59 trunk
[svn r185] Fixed broken nested classes with data members, did DMD change the class layout? tango.text.Regex now compiles.
Commented some of the *very* verbose logging for -vv option.
author | lindquist |
---|---|
date | Tue, 06 May 2008 03:07:21 +0200 |
parents | 0dec7b3727ea |
children |
rev | line source |
---|---|
134 | 1 class E : Exception |
2 { | |
3 this(char[] msg) | |
4 { | |
5 super(msg); | |
6 } | |
7 | |
8 char[] toString() | |
9 { | |
10 return super.toString(); | |
11 } | |
12 } | |
13 | |
14 extern(C) int printf(char*, ...); | |
15 | |
16 void main() | |
17 { | |
18 auto e = new E("hello world"); | |
19 auto msg = e.toString(); | |
20 printf("message should be: '%.*s'\n", msg.length, msg.ptr); | |
21 throw e; | |
22 } |