Let's get the semantic around closure fixed.

Walter Bright newshound2 at digitalmars.com
Wed May 19 02:48:52 UTC 2021


On 5/18/2021 9:47 AM, deadalnix wrote:
> Long story short: https://issues.dlang.org/show_bug.cgi?id=21929
> 
> Closure do not respect scope the way they should. Let's fix it.

The simplest solution would be to disallow delegates referencing variables in 
scopes other than function scope.


More information about the Digitalmars-d mailing list