[Issue 21745] Closure created in struct constructor passed to class constructor is not heap allocated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 22 16:07:03 UTC 2021


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

--- Comment #4 from FeepingCreature <default_357-line at yahoo.de> ---
I think that's correct.

Since it's a struct, it should save "this" by value though. typeof(this) is
Foo, not Foo*.

--


More information about the Digitalmars-d-bugs mailing list