Arrays, garbage collection

Daniel Kozak via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 30 02:03:54 PST 2015


On Friday, 30 January 2015 at 08:54:55 UTC, bearophile wrote:
> Daniel Kozák:
>
>> No, it makes more bugs possible
>>
>> // this is compile error so its ok
>> int[MUST_HAVE_FIVE_ITEMS] a=[1,2,3,5];
>> // Error: mismatched array lengths, 5 and 4
>
> Have you tried to compile my code? It doesn't give an error.
>
> Bye,
> bearophile

Ohh I misread it. Ok it really does not trigger any error.

But still would not be better just fix this issue


More information about the Digitalmars-d mailing list