[Issue 2535] New: Standard library does not mark functions as pure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 21 18:21:19 PST 2008
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 at digitalmars.com
ReportedBy: jason.james.house at 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.
--
More information about the Digitalmars-d-bugs
mailing list