Ticket #298: phoboscompatibility.diff
| File phoboscompatibility.diff, 0.6 kB (added by Gregor, 2 years ago) |
|---|
-
object.di
old new 8 8 class Object 9 9 { 10 10 char[] toUtf8(); 11 version (PhobosCompatibility) { 12 alias toUtf8 toString; 13 } 11 14 hash_t toHash(); 12 15 int opCmp(Object o); 13 16 int opEquals(Object o); … … 142 145 this(char[] msg, char[] file, size_t line, Exception next = null); 143 146 char[] toUtf8(); 144 147 } 148 149 version (PhobosCompatibility) { 150 alias Exception Error; 151 alias bool bit; 152 } 153










