Tuple DIP

Timon Gehr timon.gehr at gmx.ch
Mon Feb 19 23:47:15 UTC 2018


On 20.02.2018 00:43, Timon Gehr wrote:
> 
> void main(){
>      auto (infile, colname, repl, outfile) = 
> args[1..$].unpack!4("Invalid args\n");
> }

Actually:

void main(string[] args){
     auto (infile, colname, repl, outfile) = 
args[1..$].unpack!4("Invalid args\n");
}



More information about the Digitalmars-d mailing list