[Issue 6221] Should be possible to pass struct function returns by 'const ref'.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 1 03:17:03 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6221
--- Comment #5 from Don <clugdbug at yahoo.com.au> 2011-07-01 03:12:01 PDT ---
(In reply to comment #4)
> Shouldn't opCmp be relaxed like opEquals in bug 3659?
It is indeed the same issue. But I'm not convinced by the proposed solution in
bug 3659. We don't need more options -- we just need one GOOD one.
IMHO, this is *the* remaining black hole in the language. We have a zoo of
parameter passing options -- in, inout, out, ref, const ref, auto ref
-- and yet it's not possible to express the most basic parameter passing
option: "I want read-only access from this value, and I give the compiler
freedom to pass it as efficiently as possible."
--
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