Odd construct idea. Splitting arguments inside a parameter list.

user1234 user1234 at 12.de
Mon May 23 08:53:27 UTC 2022


On Monday, 23 May 2022 at 08:52:12 UTC, vit wrote:
> On Monday, 23 May 2022 at 08:34:21 UTC, Chris Katko wrote:
>> ````D
>> struct pair
>> {
>> float x,y;
>> }
>>
>> [...]
>
> This work too:
> ```d
> myFunction(taco, p.tupleof, burrito);
> ```

and you can pass a std.typecons.Tuple as well, it will expand x y


More information about the Digitalmars-d-learn mailing list