how convert the range to slice ?

Chris Williams via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 28 15:10:58 PST 2015


On Wednesday, 28 January 2015 at 22:43:36 UTC, bearophile wrote:
> Nordlöw:
>
>> Is there any chance we could add logic to dmd+phobos that 
>> hints user about this?
>
> It's such a fundamental part of D+Phobos that newbies are 
> forced to learn this quickly. On the other hand an informative 
> error message could be useful...
>
> What error message do you suggest?
>
> Bye,
> bearophile

Range is not castable to array. See std.array.array to generate 
an array from a Range.


More information about the Digitalmars-d-learn mailing list