[Issue 3057] Add pure annotations to core.stdc.*

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 23 05:33:47 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3057





--- Comment #11 from Sobirari Muhomori <maxmo at pochta.ru>  2009-06-23 05:33:46 PDT ---
Reference type is an example of global state in the sense that it can change
unexpectedly. Dependency on global state is impure because it prevents
reordering of function calls and caching function results. My example
demonstrates, why strlen calls can't be reordered or cached, which proves its
impurity.

-- 
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