auto arr = [1, 2, 3] should be a static array, not a GC allocated array

ryuukk_ ryuukk.dev at gmail.com
Thu Jul 14 13:14:59 UTC 2022


It is misleading, nobody expect this to be GC allocated

It should be equal to:

```D
int[3] arr = [1, 2, 3]
```

Also why it is GC allocated without requiring ``new``?




More information about the Digitalmars-d mailing list