std.math.poly and const

Walter Bright newshound1 at digitalmars.com
Fri Nov 28 21:22:34 PST 2008


dsimcha wrote:
> Should the function signature of std.math.poly be (real x, const real[] A),
> not (real x, real[] A)?  The D code at the end of the function clearly doesn't
> modify A, but I have no idea what the ASM code is doing.  Is this a bug?

Yes, it should be const.



More information about the Digitalmars-d mailing list