Re: returning and receiving multiple values from a function

2018-05-15 Thread timepp via Digitalmars-d
On Tuesday, 15 May 2018 at 02:01:38 UTC, arturg wrote: On Tuesday, 15 May 2018 at 01:40:50 UTC, timepp wrote: Now C++ allow this in a very clean way: std::tuple foo() { return {128, true, 1.5f}; } auto [value1, value2, value3] = foo(); Would D plan to support that in

Re: returning and receiving multiple values from a function

2018-05-14 Thread arturg via Digitalmars-d
On Tuesday, 15 May 2018 at 01:40:50 UTC, timepp wrote: Now C++ allow this in a very clean way: std::tuple foo() { return {128, true, 1.5f}; } auto [value1, value2, value3] = foo(); Would D plan to support that in syntax level? it depends if some dip like

returning and receiving multiple values from a function

2018-05-14 Thread timepp via Digitalmars-d
Now C++ allow this in a very clean way: std::tuple foo() { return {128, true, 1.5f}; } auto [value1, value2, value3] = foo(); Would D plan to support that in syntax level?