Odd construct idea. Splitting arguments inside a parameter list.

Mike Parker aldacron at gmail.com
Mon May 23 08:49:45 UTC 2022


On Monday, 23 May 2022 at 08:34:21 UTC, Chris Katko wrote:
> ````D

> I'm curious if you can pass a struct of values (a 'tuple'?) 
> with the right subfields, as if those fields occupied a 
> function signature. (As I write this and try to explain it, it 
> probably sounds impossible.)

Right now you can use `.tupleof`:

```d
myFunction(taco, p.tupleof, burrito);
```



More information about the Digitalmars-d-learn mailing list