Single type of a tuple return type function

Vino vino.bheeman at hotmail.com
Thu Jan 4 15:50:35 UTC 2018


Hi All,

   Request your help, on how o find the single type of a tuple 
return type function, eg,

auto Fn (){
Array!string a;
Array!int b;
Array!ulong c;
return tuple(a, b, c);
}

if we use "ReturnType!Fn" it gives us the output as 
(Array!string,Array!int, Array!ulong) but what is need is the 
return type of  each of the value as
a = Array!string; b = Array!int; c = Array!ulong

void main () {
ReturnType!Fn[0] Dcol;  //similar like this line
writeln(Dcol[]);
}

From,
Vino.B


More information about the Digitalmars-d-learn mailing list