Tell us your DIP1000 woes
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Thu Aug 29 11:59:05 UTC 2024
On 29/08/2024 8:53 PM, Richard (Rikki) Andrew Cattermole wrote:
> Thing is, this signature just says the parameter contributes towards the
> return, it doesn't consume and invalidate the original input variable.
To clarify, "invalidate the original input variable" means that from the
caller function, after the function call the argument variables will no
longer be the values that the compiler will be expecting. Potentially
causing memory corruption that would otherwise have been caught.
More information about the Digitalmars-d
mailing list