--- 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 arr = [1, 2, ...]; // compile-time error
> I'm not sure about this. I can imagine someone wanting it to work when the
> length is a template parameter, in order to initialise only the first n
> where n is fixed.
> And should we allow a value to precede the ..., like
> int arr = [1, 2, 42...];
> (all elements beyond the first two initialised to 42)?
D allows floating point literals without decimal digits:
float arr = [1., 2., 42....];
This is too much ugly, so I think it's much better to require a comma before
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------