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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 11 04:17:12 PDT 2009


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





--- Comment #8 from Sobirari Muhomori <maxmo at pochta.ru>  2009-06-11 04:17:10 PDT ---
char* str1=obj.str1;
const char* str2=obj.str2;
auto len1=strlen(str2);
str1[0]=0;
auto len2=strlen(str2);
assert(str1==str2,"pwnd");

GCC has stricter definition of pure function - a function whose arguments are
contained in the stack (no reference types), in D this definition is extended
to include immutable reference types, because they effectively behave as value
types.

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