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

           Summary: comparing array length is wonky
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: ellery-newco...@utulsa.edu


void main(){
    string s;
    int a = s.length;
    assert(a == 0);
    assert(s.length == 0);
    assert(a == 0);
    assert(a > -1);
    assert(s.length > -1); //fails
}

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

Reply via email to