[Issue 6098] Static array corruption of data
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 3 06:38:41 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6098
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |schveiguy at yahoo.com
Resolution| |INVALID
--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-06-03 06:34:16 PDT ---
Actually, it's expected :) result is on the stack, which goes away when you
return from the function (this is why the heap-allocating version has no
issues).
I'm assuming the whole shenanigans with cycle and take are so the compiler
doesn't complain? That should probably be a hint...
--
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