multi-dimensional array whole slicing

XavierAP via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 23 01:32:54 PDT 2017


On Saturday, 22 April 2017 at 22:25:58 UTC, kinke wrote:
>
> int[3][4] arr = void;
> (cast(int[]) arr)[] = 1;
> assert(arr[3][2] == 1);

Thanks... I think I prefer to write two loops though :p I wish D 
built-in arrays supported [,] indexing notation like C# (or as 
you can do in D for custom types)


More information about the Digitalmars-d-learn mailing list