Should we remove int[$] before 2.067?

Nick Treleaven via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 30 09:06:31 PST 2015


On 30/01/2015 17:01, Kenji Hara via Digitalmars-d wrote:
> 2015-01-31 1:53 GMT+09:00 Nick Treleaven via Digitalmars-d <
> digitalmars-d at puremagic.com>:
>
>> This version of staticArray allows the user to (optionally) specify the
>> element type.
>
>
> How the API can replace following declaration with ?
>
> auto[$][][$] = [
>      [[1,2]],
>      [[3,4], [5,6]],
>      [[7,8], [9,10], [11,12]],
> ];

alias s = staticArray;
auto arr = staticArray(
       [[1,2].s],
       [[3,4].s, [5,6].s],
       [[7,8].s, [9,10].s, [11,12].s],
  );




More information about the Digitalmars-d mailing list