[Issue 5797] New: std.math.approxEqual should accept const arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 30 12:56:23 PDT 2011


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

           Summary: std.math.approxEqual should accept const arguments
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: magnus at hetland.org


--- Comment #0 from Magnus Lie Hetland <magnus at hetland.org> 2011-03-30 12:52:52 PDT ---
At present, approxEqual doesn't accept const arguments. The following fails for
me, for example (DMD 2.052, OS X):

import std.math;
void main() {
    const uint[] a = [1, 2, 3];
    approxEqual(a, a);
}

The same naturally holds for any other similar function in Phobos that *can*
take const arguments (i.e., they probably should), I assume?

-- 
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