[Issue 3167] Passing result of a function call as ref argument no longer works

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 7 07:21:19 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3167



--- Comment #16 from Don <clugdbug at yahoo.com.au> 2010-02-07 07:21:15 PST ---
(In reply to comment #15)
> (In reply to comment #13)
> > It is invalid code because you are taking a reference to the return value of a
> > function. Functions return, by definition, rvalues. You cannot take a reference
> > to an rvalue.
> 
> But it used to work before.

It didn't. It only seemed to work. In simple cases it happened to work, in more
difficult cases it failed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list