[Issue 6200] [GSoC] Value returned by function cannot be passed as ref const.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 23 13:08:24 PDT 2011


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


kennytm at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kennytm at gmail.com


--- Comment #1 from kennytm at gmail.com 2011-06-23 13:03:36 PDT ---
No 'ref' does require the parameter as an lvalue, even if 'const' is present.
This is different from C++. I think it's a duplicate of bug 3167.

Also, the struct literal 'Test()' currently returns an lvalue, not an rvalue.
See bug 5889.

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