Rvalue references - The resolution

Walter Bright newshound2 at digitalmars.com
Mon May 6 15:58:32 PDT 2013


On 5/6/2013 8:31 AM, Andrei Alexandrescu wrote:
> In _this_ case, initializing A with an rvalue of type T compiles and
> subsequently runs with undefined behavior.

This is why D does not allow ref as a storage class for variables.


More information about the Digitalmars-d mailing list