LLM's think we should have language tuples!

Nick Treleaven nick at geany.org
Fri Apr 4 13:59:52 UTC 2025


On Tuesday, 1 April 2025 at 19:26:53 UTC, Timon Gehr wrote:
> - expanding a zero-element tuple does not work properly yet (in 
> general, even unrelated to unpacking)
>   https://github.com/dlang/dmd/issues/20842

Assigning to a tuple literal seems to be a no-op ATM:
```d
void main()
{
     int a,b;
     (a, b) = (4, 5);
     printf("%d %d\n", a,b); // 0 0

     auto t = (6, 7);
     printf("%d %d\n", t[0], t[1]); // 6 7

     (a, b) = t;
     printf("%d %d\n", a,b); // 0 0 still
}
```


More information about the Digitalmars-d mailing list