Feedback Thread: DIP 1039--Static Arrays with Inferred Length--Community Review Round 1

Dukc ajieskola at gmail.com
Wed Jan 6 18:02:59 UTC 2021


On Wednesday, 6 January 2021 at 17:54:34 UTC, Dukc wrote:
> You need to mention that this DIP will break code in this, 
> admittedly rare, case:
> ```
> int[] x = something;
> int y = something[0 .. staticArrFunc(cast(int[$])[1,2,3])];
> ```

should be:
```
int[] x = something;
int[] y = x[0 .. staticArrFunc(cast(int[$])[1,2,3])];
```




More information about the Digitalmars-d mailing list