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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 27 10:09:48 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3849



--- Comment #4 from bearophile_hugs at 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 a net improvement.
> There's a point of diminishing returns.

I still think that when a static array literal is given, the compiler has to
enforce the length of an array literal to be the same as the specified length.
In the uncommon situations where a partial array specification is necessary,
the programmer can just add leading empty items.

-- 
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