DIP 1023--Resolution of Template Alias Formal Parameters in Template Functions--Community Review Round 1

Daniel Kozak kozzi11 at gmail.com
Fri Sep 6 21:05:41 UTC 2019


On Fri, Sep 6, 2019 at 2:34 PM Stefanos Baziotis via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On Friday, 6 September 2019 at 12:17:11 UTC, rikki cattermole
> wrote:
> > Your examples in abstract didn't look right.
> > I ran the second to confirm my suspicion:
> >
> > onlineapp.d(9): Error: undefined identifier T
> >
> >
>
> Could you paste the example that gave you this error?
> Btw, not all examples are compilable.
>

The issue is that your abstract is wrong. You have missed T
For eg.: you have void templateFunction(TemplateType!T arg) { }
instead of void templateFunction(T)(TemplateType!T arg) { }


More information about the Digitalmars-d mailing list