Really in need of help with std.container.array.d

Robert burner Schadek via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 13 06:46:54 PDT 2014


hm, the problems seams to be that "inout Array" is not becoming 
"const Array" and friends.

A blunt force solution would be to create a range as
Range!(ReturnType!Array...)(cast(Array!T)this, low, high);
and then do the correct casts in Range.
The ReturnType would be the ReturnType of opIndex of the Range 
type and the Array would be stored as plain array without any 
qualifier.

other than that I'm not sure how to go about this.



More information about the Digitalmars-d-learn mailing list