Thread overview
[Issue 19963] [Regression 2.066 - 2.067.1] nested pure functions variable access
Jun 14, 2019
Nicholas Wilson
Dec 18, 2019
Walter Bright
Feb 13, 2020
RazvanN
June 14, 2019
https://issues.dlang.org/show_bug.cgi?id=19963

--- Comment #1 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
*** Issue 19964 has been marked as a duplicate of this issue. ***

--
December 18, 2019
https://issues.dlang.org/show_bug.cgi?id=19963

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
I'm not sure what the problem is?

--
February 13, 2020
https://issues.dlang.org/show_bug.cgi?id=19963

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
The problem is that function g is pure, but it contains function i that accesses the variable fx which is outside of its scope, thus violating purity. This code should issue an error, but it doesn't.

--