rvalue references

Zach the Mystic reachzach at gggggmail.com
Tue Apr 23 23:30:18 PDT 2013


On Tuesday, 23 April 2013 at 19:45:39 UTC, Zach the Mystic wrote:
> ref T func(ref T x, @noreturn ref T y) {
>   return x; // pass
>   return y; // error
>   static T* t = &y; // pass!?
> }

Sorry about the static definition. It should be: 'static T* t; t 
= &y;' instead, and for all subsequent definitions.


More information about the Digitalmars-d mailing list