Named Arguments Status Update - Empty Tuple Value

Timon Gehr timon.gehr at gmx.ch
Tue Jan 9 19:30:46 UTC 2024


On 1/9/24 16:40, Max Samukha wrote:
> On Tuesday, 9 January 2024 at 13:25:49 UTC, Timon Gehr wrote:
> 
>> I fully agree with your analysis above. This should error.
> 
> AliasSeq!() - point A
> AliasSeq!(1, 2) - interval B
> 
> Concatenate A and B, and you'll get B, but the point is still there, and 
> it has a name, despite the fact it is "nothing".
> 
> If we make that an error, we should make `AliasSeq!() x;` an error too, 
> which would be unfortunate.

No. In that example `y` is an `int`.


More information about the Digitalmars-d mailing list