[Issue 5923] .ptr property is not const for const arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 11 20:04:42 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5923
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |andrej.mitrovich at gmail.com
Resolution| |WORKSFORME
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-11 20:04:40 PST ---
You'll have to change:
const S test1[4] = [ S(1), S(2)];
to
const S test1[2] = [ S(1), S(2)];
to avoid runtime errors (lengths don't match for array copy).
But otherwise this seems to be fixed.
--
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