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

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Oct 14 05:51:27 PDT 2014


On Monday, 13 October 2014 at 13:46:56 UTC, Robert burner Schadek 
wrote:
> 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

Do you mean a mutable array containing references to inout data?

> qualifier.

Could you please give me a code example? I'm not skilled enough 
in D to follow this description.


More information about the Digitalmars-d-learn mailing list