[Issue 10135] core.bitop: btc, btr, btc is "pure" but have side effects
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 23 01:16:56 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10135
Alex Rønne Petersen <alex at lycus.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |alex at lycus.org
Resolution| |INVALID
--- Comment #2 from Alex Rønne Petersen <alex at lycus.org> 2013-05-23 10:16:55 CEST ---
Yes, they are pure per the D definition. Even if a function mutates the memory
pointed to by a pointer given to the function, it is still pure because that
pointer is considered an input.
See: http://klickverbot.at/blog/2012/05/purity-in-d/
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list