[Issue 2779] alias this + tuple expansion on function call doesn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 22 08:10:48 PDT 2011


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



--- Comment #4 from Andrei Alexandrescu <andrei at metalanguage.com> 2011-07-22 08:10:42 PDT ---
Fair point. I still fear this feature would cause more confusion than
convenience, particularly because function overloading rules are already so
complex. As an example, changing the type of one element in a tuple becomes a
surprising maintenance liability.

In brief, I think we shouldn't change the language such that writing f(x) may
or may not expand automatically and depending on certain conditions into f(x1,
x2, ..., xn). I actually very strongly believe it would be a net liability.

I'll let Walter decide on this.

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