[Issue 3849] Compiler should catch incomplete initialisation of an array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 27 06:28:35 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3849
--- Comment #19 from bearophile_hugs at eml.cc 2013-03-27 06:28:32 PDT ---
The fix for Issue 9712 offers a workaround for this D design mistake:
T[n] fixed(T, size_t n)(T[n] a) { return a; }
string[3] colors1 = ["red" "green", "blue"]; // Wrongly accepted.
string[3] colors2 = ["red" "green", "blue"].fixed; // Refused.
void main() {}
--
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