Will the D GC be awesome?

Tommi tommitissari at hotmail.com
Thu Oct 4 08:16:26 PDT 2012


I wonder if tuple should automatically expand (flatten) into a 
list of arguments not only when used with template parameters, 
but with regular functions as well. This so, that it would enable 
composition of tuple returning functions with functions that take 
in individual arguments instead of a tuple, enabling that:

Tuple!(int, int) getTuple()
{
     //...
}

void fun(int arg1, int arg2)
{
     //...
}

void main()
{
     fun( getTuple() );
}


More information about the Digitalmars-d mailing list