[Issue 24162] Another example of why @safe is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 26 07:50:11 UTC 2023


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

--- Comment #2 from tomerfiliba at gmail.com ---
suppose this function runs in a long living thread. so what you're saying is,
it  will be leaked forever because the GC will see it's pointed by a stack
location? fine. but surely that's undefined behavior? accessing this memory
location no longer does what it was meant to do.

--


More information about the Digitalmars-d-bugs mailing list