Bug 2515 – Lots of pure and nothrow functions not marked as such.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2008-12-14T12:12:00Z
Last change time
2015-06-09T01:20:50Z
Assigned to
bugzilla
Creator
dsimcha
Comments
Comment #0 by dsimcha — 2008-12-14T12:12:40Z
Because semantic checking for pure is new, several functions in Phobos that (I'm pretty sure) are pure are not marked as such. Examples include std.math.sqrt and std.math.abs.
Comment #1 by dsimcha — 2008-12-21T23:57:23Z
*** Bug 2535 has been marked as a duplicate of this bug. ***
Comment #2 by clugdbug — 2009-04-01T06:03:16Z
I'm marking this as closed, since the examples given (functions in std.math) are pure nothrow from DMD 2.027, in every case which is currently possible.
In general, at the present time, marking Phobos functions as 'pure nothrow' is a work-in-progress, not a bug.