www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2535] New: Standard library does not mark functions as pure

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2535

           Summary: Standard library does not mark functions as pure
           Product: D
           Version: 2.022
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jason.james.house gmail.com


I hit this in std.cpuid, but I bet it occurs in many more places.  Obviously,
any part of phobos/druntime which does not properly mark pure functions is
unusable from pure code.  I'm pretty sure that the cpuid never changes while a
program is running and the various attribute querying and toString should be
pure.


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


dsimcha yahoo.com changed:

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




------- Comment #1 from dsimcha yahoo.com  2008-12-21 23:57 -------


*** This bug has been marked as a duplicate of 2515 ***


-- 
Dec 21 2008