https://d.puremagic.com/issues/show_bug.cgi?id=11808

           Summary: std.uni
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: ilyayaroshe...@gmail.com


--- Comment #0 from Илья Ярошенко <ilyayaroshe...@gmail.com> 2013-12-23 
12:23:32 PST ---
import std.uni;

auto set1 = CodepointSet('А', 'Я'+1, 'а', 'я'+1);

_________________________
This code asserts because ('Я'+1 == 'а') :

    this()(uint[] intervals...)
    in
    {
        assert(intervals.length % 2 == 0, "Odd number of interval bounds [a,
b)!");
        for(uint i=1; i<intervals.length; i++)


            assert(intervals[i-1] < intervals[i]);
//_______________________________!!!
    }

    body
    {
        data = Uint24Array!(SP)(intervals);
//_____________!!!!!!!!!!! I don`t know how manage Uint24Array
    }

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

Reply via email to