"the last change" for ranges

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed May 20 09:56:37 PDT 2009


dsimcha wrote:
> == Quote from Denis Koroskin (2korden at gmail.com)'s article
>> Why not r.dup?
> 
> .dup is supposed to imply copying of the range's contents, not copying of the
> range's iteration state.

Yes, for arrays save() is:

T[] save(T)(T[] r) { return r; }


Andrei



More information about the Digitalmars-d mailing list