Make sure lifetime of helper structs is less than owning struct

Ali Çehreli acehreli at yahoo.com
Tue Nov 16 09:02:20 UTC 2021


On 11/16/21 12:35 AM, Sebastiaan Koppe wrote:

 > Here the
 > OP wanted to (have the compiler) destroy the FileReader when it left the
 > scope, while disallowing any use after free.

Thanks! That's what I missed.

Ali



More information about the Digitalmars-d-learn mailing list