On Friday, 4 August 2017 at 16:40:08 UTC, Stefan Koch wrote:

foreach(x;A .. B)
it's lowerd to
auto limit = B;
auto key = A;
for(auto x = key;key < limit;++key)
 // use x

That's enough to know that the foreach loop does not reuse the space for the iteration variable. That was what I cared about.

Reply via email to