Arrays, garbage collection

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 30 00:54:54 PST 2015


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


More information about the Digitalmars-d mailing list