We need to define the semantics of block initialization of arrays

bearophile bearophileHUGS at lycos.com
Tue Jun 4 05:17:29 PDT 2013


Don:

> Yeah, there's difficulties with things like:
>
> int [3][4] = [7, 7, 7];
>
> which could be a block initialization -- is this allowed or not?

I hope it keeps being disallowed, to avoid programmer's mistakes.

(Maybe this is acceptable: int [3][4] = [7, 7, 7][]; )

Bye,
bearophile


More information about the Digitalmars-d mailing list