DIP1000: Memory Safety in a Modern System Programming Language Pt.1

StarCanopy starcanopy at protonmail.com
Tue Jun 21 22:55:56 UTC 2022


On Tuesday, 21 June 2022 at 15:05:46 UTC, Mike Parker wrote:
> [...]

```d
int[5] stackData = [-1, -2, -3, -4, -5];

// Lifetime of stackData2 ends
// before limitedRef, so this is
// disallowed.
limitedRef = stackData[];
```

In the above example, `stackData2` seems to be a typo.


More information about the Digitalmars-d-announce mailing list