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

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86                         |All
                 OS|Windows                     |All

--- Comment #21 from Walter Bright <[email protected]> ---
The most practical solution is to simply disallow referencing variables from a
dynamic closure that end sooner than the closing } of the function.

This leaves it up to the user to decide how to handle it, such as passing the
variable explicitly as an argument, declaring the variable at function scope,
or copying the variable to another declared at function scope.

--

Reply via email to