Discussion: Rvalue refs and a Move construtor for D

RazvanN razvan.nitu1305 at gmail.com
Wed Sep 4 12:21:59 UTC 2019


On Wednesday, 4 September 2019 at 09:22:09 UTC, a11e99z wrote:
> On Wednesday, 4 September 2019 at 08:21:05 UTC, Suleyman wrote:
>>> [...]
>
> I want to tell something to u, Manu, WB... "u do something 
> wrong with lang"
>
> [...]
That's not mandatory. You can simply define it as:

this(ref Point rhs) {}

It's just that it is good practice to use return scope.

> I understand that u can explain every word in such construction 
> but
> for others it looks like "3.14dec" - u see here PI and 
> something.. decimal? why? what is this mean?
> ok. ask any Russian friend/familiar, he will tell u that this 
> means "big fucked up" in rude form. wait! what?! how?!
> and same way I read/see copy constructors in D.
> ok. show such construction to somebody who knows about copy 
> constructors but not D guru and ask him what does he think 
> about it?
>
> [...]



More information about the Digitalmars-d mailing list