Should range foreach be iterating over an implicit copy?

Lars T. Kyllingstad public at kyllingen.net
Thu May 17 23:17:09 PDT 2012


On Thursday, 17 May 2012 at 14:18:55 UTC, Steven Schveighoffer 
wrote:
> [...]  I believe someone has created a byRef struct that wraps 
> a range and iterates it byRef (maybe dsimcha?)

Nope, me. :)

https://github.com/kyllingstad/ltk/blob/master/ltk/range.d#L12

It only supports the input range primitives, because that was all 
I needed when I wrote it.  I offered to contribute it to Phobos 
(with support for the remaining range types, of course), but the 
interest for it seemed rather low.

-Lars


More information about the Digitalmars-d mailing list