[Issue 10108] Thread local slice to array literal references the same data
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 17 10:47:14 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10108
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> 2013-05-17 10:47:13 PDT ---
Be careful with your code snippets, unless you are more explicit about the
error reporting. Asserts are generally included to show what currently PASSES,
not what FAILS. I was about to mark this as invalid, because the code SHOULD
pass, but you are correct in that it fails.
Your code should say:
assert(arr.ptr !is thrPtr); // FAILS!!!
or
assert(arr.ptr is thrPtr);
--
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