Discussion: Rvalue refs and a Move construtor for D

Suleyman sahmi.soulaimane at gmail.com
Mon Sep 9 00:41:28 UTC 2019


On Monday, 9 September 2019 at 00:28:17 UTC, Manu wrote:
> Right, you wanna make it a type constructor.
> This should be the case also for ref and scope too... but you 
> will
> *never* get that past Walter.
> This thing you describe is the single biggest fundamental 
> mistake in
> D, storage class is improperly used for a bunch of stuff. It's 
> been
> killing me slowly for a very long time... and I'm confident 
> after so
> many years that you will not succeed.
>
> Supporting cast(@rvalue) doesn't depend on this anyway... you 
> can make that expression work either way.

I'm not bothered too much with ref as long as we have solid 
pointer types. scope is a compiler hook not that much useful to 
the programmer.



More information about the Digitalmars-d mailing list