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

Dukc ajieskola at gmail.com
Wed Jun 22 06:48:34 UTC 2022


On Tuesday, 21 June 2022 at 22:55:56 UTC, StarCanopy wrote:
> 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.

Thanks, you're right. Missed that when editing.


More information about the Digitalmars-d-announce mailing list