Error: cannot implicitly convert expression (this) of type const(S) to S

Jonathan M Davis jmdavisProg at gmx.com
Mon Sep 20 09:22:01 PDT 2010


On Monday, September 20, 2010 04:11:05 Steven Schveighoffer wrote:
> You don't want a deep copy of a range.  All you want to copy is the
> iteration state, not the data.
> 
> save is definitely supposed to be shallow.  I.e. you should copy the range
> itself, not what the range points to.

That makes sense, but whenever I see copy, I pretty much always think deep copy, 
though obviously a copy isn't always a deep copy or you wouldn't need the word 
deep.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list