[Issue 7770] New: __dollar cannot be read at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 25 12:18:24 PDT 2012


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: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list