Move Constructors - Converting Lvalues to Rvalues
ryuukk_
ryuukk.dev at gmail.com
Thu Oct 3 16:11:27 UTC 2024
On Thursday, 3 October 2024 at 14:27:37 UTC, Imperatorn wrote:
> On Wednesday, 2 October 2024 at 18:57:24 UTC, Timon Gehr wrote:
>> On 10/2/24 20:00, Walter Bright wrote:
>>> [...]
>>
>> I don't think it affects how overloading works. You just treat
>> it as a by-value argument as far as overloading and lifetime
>> handling is concerned. In terms of ABI however, you pass the
>> argument by reference.
>>
>> [...]
>
> What is the amount we need to pay to not get another attribute?
Attributes are fine, as long as i don't need to put it on every
functions because this random one has an attribute
I actually would like more attributes, for builtin
functionalities, like @cDefine on imports to avoid having to
pollute my makefile with duplicates
Move constructor in interesting tho, it only appeal to C++
developers, a dangerous species that leads to a language nobody
wants to use
Look at these C like languages gaining momentum, they embrace
features that doesn't require one to fall into RAII/OOP traps, D
will accumulate yet another feature that only appeal to C++ crowd
that lead to stupid APIs, yet, even Andrei went back to C++
More information about the Digitalmars-d
mailing list