Changeset 149

Show
Ignore:
Timestamp:
11/28/07 03:24:28 (10 months ago)
Author:
Don Clugston
Message:

Removed workaround for bug 1664 which was fixed in DMD 1.024

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/blade/SyntaxTree.d

    r148 r149  
    355355char [] mixin_valueOf(char [] sym) 
    356356{ 
    357     // This function would just return sym.stringof, except for a couple of compiler bugs. 
    358     // (1) 1.23.stringof fails to compile
    359     //  Fortunately (1.23).stringof works. IF you append "" to it! 
     357    // This function would just return sym.stringof, except that: 
     358    // (1) 1.23.stringof fails to compile (compiler bug)
     359    //  Fortunately (1.23).stringof works. 
    360360    // (2) x.stringof doesn't compile, if x is a function. Just return x instead. 
    361361    //     We also return x if x doesn't compile (eg, is an undefined variable). 
    362362    if (sym[0]>='0' && sym[0]<='9') { // numeric literal 
    363         return `(` ~ sym ~ `).stringof~""`; 
     363        return `(` ~ sym ~ `).stringof`; 
    364364    } 
    365365    return `mixin(is(typeof(` ~ sym ~ `)==function) || !is(typeof(` ~ sym ~ `))?"\"` ~ enquote(sym, `\\\`) ~ `\"":"` ~ enquote(sym ~ ".stringof") ~ `")`;