[Issue 6098] Static array corruption of data
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 3 06:47:11 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6098
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-06-03 06:42:45 PDT ---
Smiley face, but this is a subtle thing without any warnings from the compiler.
I'm using cycle here for good purpose and not to drown the compiler, take would
be used to fill a buffer of some certain length.
I'll just use the heap, it's not a problem. I just assumed using a range on
stack-allocated data would copy the data when returning the range from the
function.
--
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