[Issue 22977] [dip1000] can escape scope pointer returned by nested function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 15 15:36:27 UTC 2022


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
Probably the most sensible way to deal with this is to allow non-static nested
functions to have `return` and `scope` attributes, and then treat uplevel
variable references as if they were parameters marked with those attributes.

--


More information about the Digitalmars-d-bugs mailing list