More bugs...

Steven Schveighoffer schveiguy at yahoo.com
Wed May 2 05:04:21 PDT 2012


On Tue, 01 May 2012 22:11:18 -0400, Mehrdad <wfunction at hotmail.com> wrote:

> More problems... similar, but this time related to templates.
>
>   struct Filter(R) { this(R) { } }
>   template filter(R) { alias Filter!(R).__ctor filter; }
>   void main() { filter([1, 2, 3]); }
>
> Error: template linq.filter(R) is not a function template

It's an annoying limitation.  IFTI specifically *only* works with  
functions.  Not aliases, not types, not anything else.  Functions only.

-Steve


More information about the Digitalmars-d mailing list