[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:29:49 PDT 2011


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



--- Comment #15 from Jacob Carlborg <doob at me.com> 2011-07-22 11:29:47 PDT ---
Say we have this:

struct Foo
{
    int value;
    alias value this;
}

If an "instance" of Foo is passed to a function taking variadic arguments then
it's received as Foo and not int, correct? Why would an alias this with a tuple
behave any different. In that case you would have to manually expand it.

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