Move semantics for D

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Jul 13 04:03:59 PDT 2012


On 7/13/12 5:11 AM, Jonathan M Davis wrote:
> On Friday, July 13, 2012 10:45:03 Benjamin Thaut wrote:
>> Am 13.07.2012 10:19, schrieb Mehrdad:
>>> On Friday, 13 July 2012 at 08:06:08 UTC, monarch_dodra wrote:
>>>> Move semantics in C++0x are quite nice for optimization purposes.
>>>
>>> That's not why they were introduced.
>>>
>>> They were introduced for making things like unique_ptr possible.
>>
>> Well thats your point of view. I'm coming from the gaming industry, and
>> everyone I have talked to so far, is happy because they can use it to
>> optimize better.
>
> I expect that the reality of the matter is that it was introduced for both.
>
> - Jonathan M Davis

Three. These two plus perfect forwarding. Which is imperfect :o).

Andrei


More information about the Digitalmars-d mailing list