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

Steven Schveighoffer schveiguy at gmail.com
Mon Sep 30 15:15:54 UTC 2024


On Monday, 30 September 2024 at 12:50:49 UTC, user1234 wrote:
> 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.

I've wanted this forever.

https://issues.dlang.org/show_bug.cgi?id=6082

-Steve




More information about the Digitalmars-d mailing list