DMD Bug or not? foreach over struct range

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Wed May 16 00:29:23 PDT 2012


"Jonathan M Davis" <jmdavisProg at gmx.com> wrote in message 
news:mailman.826.1337151940.24740.digitalmars-d-learn at puremagic.com...
>
> No. That's expected. Your range is a value type, so it got copied when you
> used it with foreach.

But foreach isn't a function, it's a flow-control statement.




More information about the Digitalmars-d-learn mailing list