study: use checkedint as a drop-in replacement of native long

Andrei Alexandrescu SeeWebsiteForEmail at erdani.com
Tue Aug 18 21:39:42 UTC 2020


On 8/18/20 1:07 AM, H. S. Teoh wrote:
> On Mon, Aug 17, 2020 at 09:23:01PM -0400, Andrei Alexandrescu via Digitalmars-d wrote:
> [...]
>> Whenever I implement opAssign I have it return void and try to
>> remember to propose that the compiler takes care of chained
>> assignments by itself.
>>
>> Requiring user-defined assignment to `return *this;` was goofy in C++.
>> Requiring user-defined assignment to `return this;` is goofy in D.
>> Assignment should return void and the compiler should take care of it.
> 
> +1.  Is there an enhancement request for this?  As Walter often says, if
> it's not in bugzilla, it doesn't exist. ;-)

https://issues.dlang.org/show_bug.cgi?id=21175

Not holding my breath.



More information about the Digitalmars-d mailing list