d-idioms icon indicating copy to clipboard operation
d-idioms copied to clipboard

struct tupleof constructor

Open p0nce opened this issue 4 years ago • 0 comments

Adam uses:

struct S
{
    this(typeof(this.tupleof) args)
    {
        this.tupleof = args;
    }
    // members...
}
```
So that using the struct construction syntax catch errors with args.

See beginning of https://www.youtube.com/watch?v=XuYcZPYWbKk

p0nce avatar Nov 20 '21 19:11 p0nce