digitalmars.D - std.math.poly and const
- dsimcha (3/3) Nov 28 2008 Should the function signature of std.math.poly be (real x, const real[] ...
- Walter Bright (2/5) Nov 28 2008 Yes, it should be const.
- Denis Koroskin (5/12) Nov 29 2008 crc32 module also needs to be updated. Not only it doesn't use const (bu...
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?
Nov 28 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.
Nov 28 2008
On Sat, 29 Nov 2008 08:22:34 +0300, Walter Bright <newshound1 digitalmars.com> wrote:dsimcha wrote:crc32 module also needs to be updated. Not only it doesn't use const (but should, it allows compile-time crc32 evaluation), but it also uses char[] instead of string! :)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.
Nov 29 2008