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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 29 15:50:14 PST 2010


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



--- Comment #13 from Walter Bright <bugzilla at digitalmars.com> 2010-01-29 15:50:10 PST ---
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.

-- 
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