How to unpack a tuple into multiple variables?

ryuukk_ ryuukk.dev at gmail.com
Wed Feb 7 13:18:00 UTC 2024


On Wednesday, 7 February 2024 at 05:29:45 UTC, Gary Chike wrote:
> On Wednesday, 7 February 2024 at 01:17:33 UTC, zjh wrote:
>
>> Officially, there should be an unpacking solution, like
>> ```d
>> //C++
>> auto[a,b,c]=tuple.
>> ```
>
> Wouldn't that be nice? I hope a clean and terse 
> direct-implementation comes in the near future. :)

There was a DIP for native tuples in D, hopefully we'll get it 
soon


More information about the Digitalmars-d-learn mailing list