Local functions infer attributes?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 28 17:51:25 PDT 2014


On 9/28/2014 5:38 PM, Manu via Digitalmars-d wrote:
> That said, my friend encountered one of my frequently recurring pain
> cases himself yesterday:
> struct S(T...)
> {
>    void f(T args) {}
> }
>
> S!(int, ref S) fail; // <-- no clean way to do this. I need this very
> frequently, and he reached for it too, so I can't be that weird.

   S!(int, S*)



More information about the Digitalmars-d mailing list