Built-in array opSliceAssign

Eduard Staniloiu edi33416 at gmail.com
Tue Oct 30 09:01:41 UTC 2018


On Thursday, 25 October 2018 at 21:00:46 UTC, Adam D. Ruppe wrote:
> On Thursday, 25 October 2018 at 19:56:18 UTC, Stanislav Blinov 
> wrote:
>> The current behavior of the compiler is quite the opposite of 
>> those "same as" above.
>
> Yeah, I guess I am maybe selectively reading the spec in light 
> of the implementation... but I think the examples are just 
> sloppy. Or maybe we have a buggy implementation but idk which 
> is more useful.

I still hold my believe that if opAssign is defined then that 
should be used.

In my humble opinion, the current way might/could be faster, but 
it's not correct.


More information about the Digitalmars-d-learn mailing list