DIP1000: Walter's proposal to resolve ambiguity of ref-return-scope parameters
Dennis
dkorpel at gmail.com
Thu Nov 25 13:43:10 UTC 2021
On Thursday, 25 November 2021 at 08:31:42 UTC, zjh wrote:
> What does `scope` mean?
`scope` on a variable with a pointer type means the pointer value
will not leave the scope that the variable is declared in.
> Why I don't understand it?
There are many special cases and the documentation isn't very
good.
> What's the `point`?
To prevent memory corruption in `@safe` code when working with
stack variables.
More information about the Digitalmars-d
mailing list