[Issue 2460] Ref functions can't be template functions.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 23 09:34:43 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2460
kennytm at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |kennytm at gmail.com
Resolution| |FIXED
--- Comment #3 from kennytm at gmail.com 2011-04-23 09:31:02 PDT ---
Looks like this has been fixed. All programs in this page compiles for me.
--------
struct Foo {
double x, y;
ref double get(Args...)(Args args) if (args.length == 4) {
return x;
}
}
void main() {
Foo f;
f.get(4,5,6,7) = 6;
assert(f.x == 6);
}
--------
Can we fix this std.complex bug then?
"Some operators, such as opAssign and opOpAssign, should return by ref, but
currently don't. This will be implemented as soon as DMD bug 2460 is fixed."
--
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