--- Comment #11 from bearophile_h...@eml.cc 2011-09-10 02:35:35 PDT ---
>From that post:
> The solution is to add some symbol that explicitly marks the array as not
> complete, so both the compiler and > the person that later reads the code
> knows some items are missing.
> If no item is missing the compiler probably has to generate an error again:
> int arr = [1, 2, ...]; // compile-time error
> I think that syntax is explicit and readable enough. A problem with this idea
> this syntax is probably not > used often. On the other hand leaving that trap
> the D language is not good at all.
> The idea of the dollar symbol can't be used with the ellipsis symbol:
> int[$] arr = [1, 2, ...]; // compile-time error again
> Note: for me this syntax with $ is more commonly useful compared to the "..."
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------