Thread overview | |||||
---|---|---|---|---|---|
|
June 14, 2019 [Issue 19963] [Regression 2.066 - 2.067.1] nested pure functions variable access | ||||
---|---|---|---|---|
| ||||
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 [Issue 19963] [Regression 2.066 - 2.067.1] nested pure functions variable access | ||||
---|---|---|---|---|
| ||||
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 [Issue 19963] [Regression 2.066 - 2.067.1] nested pure functions variable access | ||||
---|---|---|---|---|
| ||||
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. -- |
Copyright © 1999-2021 by the D Language Foundation