[Issue 24096] a pure function is in fact impure for local automatic external variables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 22 01:06:02 UTC 2023


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

Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator at gmail.com> ---
I don't understand, what is the bug supposed to be here?

D's pure functions are allowed to use references passed to them, which includes
the local variables for nested functions.

--


More information about the Digitalmars-d-bugs mailing list