Issue with forward ranges which are reference types
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Aug 16 21:26:37 PDT 2011
On 8/16/11 11:05 PM, Jonathan M Davis wrote:
> Sorry that this is long, but it's very important IMHO, and I don't know how to
> make it much shorter and cover what it's supposed to cover.
[snip]
Keep things as they are. Algorithms operate on ranges as specified in
their signatures. If they need to create additional copies thereof, they
use .save. If client code needs to pass a copy of a range to an
algorithm, it passes .save.
Andrei
More information about the Digitalmars-d
mailing list