Bug 6381 – math.floor, math.ceil are not pure functions.
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-07-25T15:20:00Z
Last change time
2013-08-30T00:26:38Z
Assigned to
nobody
Creator
andrew.spott
Comments
Comment #0 by andrew.spott — 2011-07-25T15:20:59Z
I'm not sure if there is a valid reason for this that I'm not understanding, but why are these (rather basic) functions not pure?
It seems to me that it would be best to have most of the std.math functions be pure if only because they can.
Comment #1 by hsteoh — 2013-08-27T08:07:55Z
The latest std.math now has pure ceil/floor (and most of the other functions), thanks to Iain.