Tuple DIP

Timothee Cour thelastmammoth at gmail.com
Tue Feb 20 00:57:30 UTC 2018


On Mon, Feb 19, 2018 at 4:05 PM, Timon Gehr via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On 20.02.2018 00:53, Timothee Cour wrote:
>>
> Sure! Also, this:
>
> void main(string[] args){
>     enforce(args.length==5, "Invalid args");
>     auto (infile, colname, repl, outfile) = args[1..5].unpack;
>     // ...
> }


how does that latter example work?


More information about the Digitalmars-d mailing list