Odd construct idea. Splitting arguments inside a parameter list.
user1234
user1234 at 12.de
Mon May 23 08:58:10 UTC 2022
On Monday, 23 May 2022 at 08:53:27 UTC, user1234 wrote:
> 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
well actually std Tuple is a struct but that works without
excplicit `.tupleof`.
More information about the Digitalmars-d-learn
mailing list