On Tuesday, 21 September 2021 at 20:47:41 UTC, H. S. Teoh wrote:
And since stopper isn't used anymore after declaration, an optimizing compiler is free to assume that it's not needed afterwards, so it's not obligated to keep the reference alive until the end of the function.

It was not obvious for me,
I thought lifetimes always
lasts until the end of a scope
(main in this case).

Reply via email to