rvalue references

bitwise via Digitalmars-d digitalmars-d at puremagic.com
Wed May 13 16:52:05 PDT 2015


On Tue, 12 May 2015 08:54:15 -0400, Namespace <rswhite4 at gmail.com> wrote:

> As far as I know, the problem (or at least one of the biggest problems)  
> for rvalue references was that they could escape. Since DIP25 is  
> approved and already implemented this problem should be solved. Would it  
> be possible to allow rvalues references now? I'm just curious what the  
> mindfactory of D has in mind and what the scheme for that problem is.


Wouldn't DIP69 have to be dealt with first before this happens?
There seems to be some overlap between DIP69 and DIP25.

For example, isn't scope unnecessary for this code after DIP25?

func(scope ref T t) {
     return t; // already illegal per DIP25, no need for scope
}


   Bit


More information about the Digitalmars-d mailing list