What was so crazy about IFTI for parent agregate via ctor call ?

user1234 user1234 at 12.de
Mon Sep 30 12:50:49 UTC 2024


For reference it's the old DIP 40 [0] so a thing like

```d
struct IPersonallyPresentYouDip40(T)
{
     this(T t){}
}

void main()
{
     auto v = IPersonallyPresentYouDip40(0); // infer `int` for `T`
}
```

should work.

[0]: https://wiki.dlang.org/DIP40


More information about the Digitalmars-d mailing list