[Issue 17318] Delegates allow escaping reference to stack variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 21 00:59:26 UTC 2018


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

--- Comment #3 from hsteoh at quickfur.ath.cx ---
P.S. On my computer, the value of z changes after the call to dg(), which is
wrong because z is a local variable in smoke() that the delegate should not be
able to access.

--


More information about the Digitalmars-d-bugs mailing list