Idiomatic way to process const/immutable arrays as ranges
Dicebot
m.strashun at gmail.com
Mon Feb 11 09:13:21 PST 2013
On Monday, 11 February 2013 at 16:54:04 UTC, Jonathan M Davis
wrote:
> The const(T)[] cannot alter the original array at all, so I
> concur with Steven
> in that the complaints about not wanting to use tail-const make
> no sense.
> Maybe this article will help clear things up:
And I exactly want to prohibit altering original array. What I
want is to copy slice (without deep copying of data) and alter
this fresh copy. I can't see how it contradicts immutability
guarantees or D array design.
More information about the Digitalmars-d-learn
mailing list