Thread overview
[Issue 19963] [Regression 2.066 - 2.067.1] nested pure functions variable access
5 days ago
RazvanN
June 14
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
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?

--
5 days ago
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.

--