[Issue 9857] UFCS for struct opCall
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 3 09:42:19 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9857
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #16 from bearophile_hugs at eml.cc 2013-07-03 09:42:17 PDT ---
(In reply to comment #15)
> The discussion is misguided. opCall is compatible with UFCS already.
Right, I didn't realize this works:
struct Foo {
int opCall(bool b) {
return 0;
}
}
Foo foo;
void main() {
auto b1 = foo(true); // OK
auto b2 = true.foo; // Error
}
> I suggest to close this down
OK, closed.
> and to open a more detailed enhancement request for using
> local symbols with UFCS instead if that is desired.
That's a quite different need. It needs more thinking. Thank you for the note.
--
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