Summary: no equality between iota and double literal
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2010-09-03 
10:18:34 PDT ---
>From this unittest in the documentation:

import std.algorithm;
import std.range;

void main() 
    auto rf = iota(0.0, 0.5, 0.1);
    assert(equal(rf, [0.0, 0.1, 0.2, 0.3, 0.4]));

This assertion fails. I'm not sure if it is because of floating-point
representation being different(?) or if this is really a bug. But its in the
docs, so the code either has to go or there's a bug.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to