[Development] Setters: Clarifying the ownership

Konstantin Tokarev annulen at yandex.ru
Fri Jan 19 18:09:27 CET 2018



19.01.2018, 20:07, "Adam Treat" <adam.treat at qt.io>:
> How about "transfer"

Why not just use move semantics of language instead of inventing new terms?

>
> On 01/19/2018 11:57 AM, Thiago Macieira wrote:
>>  On sexta-feira, 19 de janeiro de 2018 08:26:21 PST Philippe wrote:
>>>  +20 years ago, the (good) Taligent crossplatform project, in its guideline,
>>>  proposed:
>>>
>>>  adopt() aka "take ownership"
>>>
>>>  orphan() aka "release ownership"
>>  Given that we already have "take" methods that release ownership in the Qt
>>  containers, that won't work. See QList / QVector::takeAt.
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-- 
Regards,
Konstantin




More information about the Development mailing list