Are structs saved in multi-thread delegate call?

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 23 11:25:44 PDT 2016


On 23.04.2016 07:35, ag0aep6g wrote:
> So the struct is destroyed at the end of DoDirSearch, despite there
> being a closure for it. Is the compiler doing the right thing here?
> Shouldn't the struct be considered alive until the closure gets garbage
> collected?

I've filed an issue:
https://issues.dlang.org/show_bug.cgi?id=15952


More information about the Digitalmars-d-learn mailing list