http://d.puremagic.com/issues/show_bug.cgi?id=7177
--- Comment #16 from Kenji Hara <[email protected]> 2013-03-21 07:59:47 PDT --- The idea in comment #11 is interesting, but one problem point is that current compiler does not see UFCS fallback for operator overloading. If we accept it, should we also accept this? string opBinary(string op)(string s1, string s2) if (op == "+") { return s1 ~ s2; } void main() { assert("hello " + "world!" == "hello world!"); // --> "hello ".opBinary!"+"("world!") // op-overloading // --> .opBinary!"+"("hello ", "world!") // UFCS } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
