http://d.puremagic.com/issues/show_bug.cgi?id=7770

           Summary: __dollar cannot be read at compile time
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2012-03-25 12:18:47 PDT ---
D2 code:

import std.ascii: uppercase;
import std.string: maketrans;
void main() {
    static r = maketrans(uppercase, uppercase[0 .. $]);
}


DMD 2.059head:

test.d(4): Error: variable __dollar cannot be read at compile time
test.d(4):        called from here:
maketrans(cast(const(char[]))uppercase,cast(const(char[]))uppercase[0u..__dollar])

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to