Re: RandomAccessRange / Mobile Elements

2014-05-27 Thread monarch_dodra via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 13:04:50 UTC, Johann wrote: Hello, I read in std.range that given a random access range r , r.opIndex(n) should return a reference to the nth element. Is there a qualifier for a "read only" random access range? If not, why? The documentation is a bit wrong. It does

RandomAccessRange / Mobile Elements

2014-05-27 Thread Johann via Digitalmars-d-learn
Hello, I read in std.range that given a random access range r , r.opIndex(n) should return a reference to the nth element. Is there a qualifier for a "read only" random access range? If not, why? I also don't really get the point of "Mobile Elements", how is "destructively reading" related to