Thread overview
[Issue 2515] New: Lots of pure and nothrow functions not marked as such.
Dec 14, 2008
d-bugmail
Dec 22, 2008
d-bugmail
Apr 01, 2009
d-bugmail
December 14, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2515

           Summary: Lots of pure and nothrow functions not marked as such.
           Product: D
           Version: 2.022
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: dsimcha@yahoo.com


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.


-- 

December 22, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2515


dsimcha@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason.james.house@gmail.com




------- Comment #1 from dsimcha@yahoo.com  2008-12-21 23:57 -------
*** Bug 2535 has been marked as a duplicate of this bug. ***


-- 

April 01, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2515


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from clugdbug@yahoo.com.au  2009-04-01 06:03 -------
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.


--