More tricky range semantics

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 15 15:24:29 PST 2015


On 1/15/15 12:53 PM, H. S. Teoh via Digitalmars-d wrote:
> Passing a range to a
> function may invalidate it unless you use .save.  Therefore, one should
> *always*  use .save.

That's right. To simplify the problem space we might decree that forward 
(or better) ranges with reference semantics are not allowed. -- Andrei



More information about the Digitalmars-d mailing list