[Issue 22421] static foreach introduces semantic difference between indexing and iteration variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 18 19:33:33 UTC 2021


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

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 wanna follow the thread

i suspect this has to do with an assignment to a temporary in the loop forcing
eval of the ctfe thing, turning it from an alias symbol into a value.

but using the `alias` keyword in the static foreach still does it which makes
me not sure.

--


More information about the Digitalmars-d-bugs mailing list