On Sunday, 15 November 2026 at 19:29:32 UTC, DLearner wrote:
   int Arg1, Arg2;
   tuple(Arg1, Arg2) = fnTuple1(4);

If using a preview switch is OK, D [now has unpacking declarations](https://dlang.org/changelog/2.114.0.html#dmd.tuple-unpacking). I've not tried it with -betterC, but I expect it should work:

```d
auto (Arg1, Arg2) = fnTuple1(4); // declare Arg1 and Arg2
```

Unpacking into existing variables is not supported yet (though I did implement that on a branch, needs a DIP).

Reply via email to