[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 11:24:20 PDT 2011


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



--- Comment #14 from Andrei Alexandrescu <andrei at metalanguage.com> 2011-07-22 11:24:19 PDT ---
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #11)
> > > Andrei: I don't see how it could be much different when matching one argument
> > > and several.
> > 
> > I explained in my argument about this:
> > 
> > fun(t1, t2, t3, t4);
> > 
> > How do you suggest we handle that?
> 
> Depends on how the function is declared and what's passed to the function. If
> the original type matches (i.e. the tuple) then don't expand the tuple. If the
> tuple doesn't match then try to expand the tuple.

fun could be overloaded and might use variadics and template constraints.

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