Blocker for the container work

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 13 09:25:42 PST 2015


On Friday, 13 November 2015 at 17:01:34 UTC, Andrei Alexandrescu 
wrote:
> I just submitted https://issues.dlang.org/show_bug.cgi?id=15328 
> which is currently blocking my work on containers.
>
> In brief the postblit isn't called upon calling
>
> Range save() { return this; }
>
> which of course is less than helpful.
>
> Reductions of the example would be awesome - I reduced it a 
> fair amount compared to the initial code, but I'm sure someone 
> without that context could do a much better job.
>
>
> Thanks,
>
> Andrei

afaik that's RVO, isn't it?
D's RVO semantics are pretty much unspecified still(outside of 
dmd,) I believe(don't quote me) that walter said it's supposed to 
be part of the spec but I could never find anything.

there's a few bugs filed on it
https://issues.dlang.org/show_bug.cgi?id=10372
https://issues.dlang.org/show_bug.cgi?id=11287
https://issues.dlang.org/show_bug.cgi?id=10371

probably others


More information about the Digitalmars-d mailing list