www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2515] New: Lots of pure and nothrow functions not marked as such.

reply d-bugmail puremagic.com writes:
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.


-- 
Dec 14 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2515


dsimcha yahoo.com changed:

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





*** Bug 2535 has been marked as a duplicate of this bug. ***


-- 
Dec 21 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2515


clugdbug yahoo.com.au changed:

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





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.


-- 
Apr 01 2009