multidimensional array setting/slicing?

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Jul 28 09:51:12 PDT 2008


"bearophile" <bearophileHUGS at lycos.com> wrote in message 
news:g6kn24$77v$1 at digitalmars.com...

> You have to learn still where to put spaces too.

> foreach(ref a; array)
> =>
> foreach (ref a; array)
>
>> a[1..1+array2[i].length] = array2[i];
> =>
>> a[1 .. 1+array2[i].length] = array2[i];
>
> array2.length=2;
> =>
> array2.length = 2;

Don't you think you're being a bit pedantic?  Whitespace is optional and 
everyone has their own preferences. 




More information about the Digitalmars-d-learn mailing list