My thoughts & tries with rvalue references

Zach the Mystic reachzach at gggggmail.com
Wed Apr 3 18:09:01 PDT 2013


On Thursday, 4 April 2013 at 01:07:08 UTC, Zach the Mystic wrote:
> static int* x;
> static int y;
> x = *func(3); // Error: result of func(3) is assumed to be local
> x = *func(y); // Pass: address of y is known to be global

s/*func/&func/


More information about the Digitalmars-d mailing list