returning and receiving multiple values from a function

timepp tongjunhui at live.cn
Tue May 15 01:40:50 UTC 2018


Now C++ allow this in a very clean way:

> std::tuple<int, bool, float> foo() {   return {128, true, 
> 1.5f}; }

> auto [value1, value2, value3] = foo();


Would D plan to support that in syntax level?


More information about the Digitalmars-d mailing list