Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #298: phoboscompatibility.diff

File phoboscompatibility.diff, 0.6 kB (added by Gregor, 2 years ago)
  • object.di

    old new  
    88class Object 
    99{ 
    1010    char[] toUtf8(); 
     11    version (PhobosCompatibility) { 
     12        alias toUtf8 toString; 
     13    } 
    1114    hash_t toHash(); 
    1215    int    opCmp(Object o); 
    1316    int    opEquals(Object o); 
     
    142145    this(char[] msg, char[] file, size_t line, Exception next = null); 
    143146    char[] toUtf8(); 
    144147} 
     148 
     149version (PhobosCompatibility) { 
     150    alias Exception Error; 
     151    alias bool bit; 
     152} 
     153