How to use an associative array with array values.

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Wed Mar 21 18:47:43 UTC 2018


On Wednesday, 21 March 2018 at 18:31:29 UTC, tipdbmp wrote:
> I see. I guess the other would be:
>
> {
>     int[8192] bar;
>     int[8192][string] foo;
>     foo["a"] = bar;
>     foo["a"][8191] = -1;
> }

https://run.dlang.io/is/AK2X2t

Are you looking to use static arrays or dynamic? You can't use 
the new keyword if it static.


More information about the Digitalmars-d-learn mailing list