comparison lphobos/internal/objectimpl.d @ 86:fd32135dca3e trunk

[svn r90] Major updates to the gen directory. Redesigned the 'elem' struct. Much more... !!! Lots of bugfixes. Added support for special foreach on strings. Added std.array, std.utf, std.ctype and std.uni to phobos. Changed all the .c files in the gen dir to .cpp (it *is* C++ after all)
author lindquist
date Sat, 03 Nov 2007 14:44:58 +0100
parents b706170e24a9
children ccca1c13e13a
comparison
equal deleted inserted replaced
85:f869c636a113 86:fd32135dca3e
1133 this(char[] msg) 1133 this(char[] msg)
1134 { 1134 {
1135 this.msg = msg; 1135 this.msg = msg;
1136 } 1136 }
1137 1137
1138 void print()
1139 {
1140 char[] s = toString();
1141 printf("%.*s\n", s.length, s.ptr);
1142 }
1143
1138 char[] toString() { return msg; } 1144 char[] toString() { return msg; }
1139 } 1145 }
1140 1146
1141 /** 1147 /**
1142 * All irrecoverable exceptions should be derived from class Error. 1148 * All irrecoverable exceptions should be derived from class Error.