std.v2020.algorithm etc[ WAS: Is run.d going to be expand for runtime and the phobos library?]

Paul Backus snarwin at gmail.com
Sat Jun 20 13:09:54 UTC 2020


On Saturday, 20 June 2020 at 12:30:43 UTC, Stanislav Blinov wrote:
>> If it had worked, we could require that non-forward ranges are 
>> non-copyable.
>
> I can imagine this would be quite some work to adapt all of 
> Phobos to *that*. I mean, things like
>
> auto rem = makeSomeInputRange.find!pred;
> auto flt = makeSomeInputRange.filter!pred;
>
> Those would not compile. They could be made to compile by 
> `move`ing the argument for the return. But then you still won't 
> be able to pass those results around, unless via a refRange or 
> `move`.

https://github.com/WalterBright/DIPs/blob/13NNN-WGB.md/DIPs/13NNN-WGB.md


More information about the Digitalmars-d mailing list