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

           Summary: std.utf.stride doesn't work in ctfe
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: ellery-newco...@utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newco...@utulsa.edu> 2010-06-20 
13:45:53 PDT ---
due to some petty stupid thing, unless you're willing to cast.

This:

import std.utf;
void main(){
    enum
    string s = "hi!";
    enum
    int i = stride(s,0);
}

gives this:

test.d(6): Error: function std.utf.stride called with argument types:
        ((string,int))
matches both:
        std.utf.stride(in const(char[]) s, uint i)
and:
        std.utf.stride(in const(dchar[]) s, uint i)


comment out the enums and it does no such thing.

Actually, pretending a char[] is a dchar[] might not be petty..

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

Reply via email to