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

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jun 20 14:54:49 UTC 2020


On 6/20/20 9:01 AM, Petar Kirov [ZombineDev] wrote:
> On Saturday, 20 June 2020 at 12:30:43 UTC, Stanislav Blinov wrote:
>> On Saturday, 20 June 2020 at 11:20:13 UTC, Petar Kirov [ZombineDev] 
>> wrote:
>>
>>> As far as I know, back when the ranges API was worked on postblit 
>>> ctors didn't work reliably, so .save() was the only option.
>>
>> Funny that, at the moment it's the copy ctors that aren't working 
>> reliably (e.g. they're not working at all with arrays). :)
> 
> You mean that array.dup doesn't work if the element type uses copy 
> constructors? I haven't checked so I guess it's a problem indeed, though 
> this shouldn't affect the ranges themselves (i.e. array slices).

I thought this was fixed a while ago.



More information about the Digitalmars-d mailing list