BigInt foreach loop
Q. Schroll via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Aug 9 14:34:26 PDT 2017
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.
More information about the Digitalmars-d-learn
mailing list