"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.