[Issue 22563] Nested structs, if not escaping, shouldn't allocate context (just like delegates)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 3 16:24:25 UTC 2021


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

kinke <kinke at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #1 from kinke <kinke at gmx.net> ---
`scope S` doesn't prevent `consumeThingWithContext!Nested` from copying or
moving the struct to some global state surviving the invocation.

--


More information about the Digitalmars-d-bugs mailing list