[Issue 21868] DIP1000 doesn't catch pointer to struct temporary

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 3 18:48:42 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21868

--- Comment #2 from Dennis <dkorpel at live.nl> ---
> This is wrong, the `return` does not apply to `&this_.x`, only to `this_.buf`;

I should be careful when renaming variables :) Corrections:

* reduces this to checking whether `this_.buf` escapes by ref
* This is wrong, the `return` does not apply to `&this_.buf`, only to
`this_.ptr`;

--


More information about the Digitalmars-d-bugs mailing list