[Issue 3849] [missing error] Array literal length doesn't match

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #14 from Stewart Gordon 2011-09-11 07:50:51 PDT --- (In reply to comment #13) > float[6] arr = [1., 2., 42]; > > This is too much ugly, You don't have to use it then. You could use float[6] arr = [1., 2., 42. ...]; or

[Issue 3849] [missing error] Array literal length doesn't match

2011-09-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #13 from bearophile_h...@eml.cc 2011-09-11 04:11:11 PDT --- (In reply to comment #12) > >> If no item is missing the compiler probably has to generate an > >> error again: > >> > >> int[2] arr = [1, 2, ...]; // compile-time error

[Issue 3849] [missing error] Array literal length doesn't match

2011-09-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #12 from Stewart Gordon 2011-09-10 18:31:01 PDT --- (In reply to comment #11) > See also: > http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=144237 > > From that post: > >> The solution is to a

[Issue 3849] [missing error] Array literal length doesn't match

2011-09-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #11 from bearophile_h...@eml.cc 2011-09-10 02:35:35 PDT --- See also: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=144237 >From that post: > The solution is to add some symbol that explicitly

[Issue 3849] [missing error] Array literal length doesn't match

2010-11-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 Gide Nwawudu changed: What|Removed |Added Keywords||accepts-invalid, diagnostic

[Issue 3849] [missing error] Array literal length doesn't match

2010-11-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #9 from bearophile_h...@eml.cc 2010-11-26 12:25:34 PST --- See also bug 481 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 3849] [missing error] Array literal length doesn't match

2010-10-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #8 from bearophile_h...@eml.cc 2010-10-28 12:20:43 PDT --- (In reply to comment #6) > It isn't an array literal, it's a static initializer. They look the same, but > are distinct entities with distinct rules. General design rule: i

[Issue 3849] [missing error] Array literal length doesn't match

2010-08-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #7 from bearophile_h...@eml.cc 2010-08-01 15:29:25 PDT --- See a consequence of this in bug 4565 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 3849] [missing error] Array literal length doesn't match

2010-05-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 Stewart Gordon changed: What|Removed |Added CC||s...@iname.com --- Comment #6 from St

[Issue 3849] [missing error] Array literal length doesn't match

2010-04-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #5 from bearophile_h...@eml.cc 2010-04-27 13:00:32 PDT --- Once the length test is in place, to avoid adding the trailing empty items a very simple ... trailing syntax can be introduced (partially from a suggestion by Michel Fortin):

[Issue 3849] [missing error] Array literal length doesn't match

2010-04-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #4 from bearophile_h...@eml.cc 2010-04-27 10:09:45 PDT --- Walter doesn't want to add the int[$] arr = [...]; syntax: > D is full of syntax, at some point adding more and more syntax to deal > with more and more obscure cases is not

[Issue 3849] [missing error] Array literal length doesn't match

2010-03-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #3 from bearophile_h...@eml.cc 2010-03-17 12:44:40 PDT --- See related bug 3948 too. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 3849] [missing error] Array literal length doesn't match

2010-03-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 Don changed: What|Removed |Added Keywords|ice-on-invalid-code | CC||

[Issue 3849] [missing error] Array literal length doesn't match

2010-02-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3849 --- Comment #1 from bearophile_h...@eml.cc 2010-02-24 02:10:50 PST --- This is a similar bug, but the causes seem different (I don't know if in this case I have to file a new bug report). This program: void main() { struct S { int x; } S[2]