UFCS on template alias ?

2015-02-21 Thread Baz via Digitalmars-d-learn
Is this a normal behaviour ? --- void main() { import std.algorithm; auto list = [0,1,2,3]; alias poly = map; list.poly!(a = a + a); } --- outputs: Error: no property 'poly' for type 'int[]'

Re: UFCS on template alias ?

2015-02-21 Thread bearophile via Digitalmars-d-learn
Baz: Is this a normal behaviour ? Try to move the definition of poly to module-level scope. This is a design decision to avoid other troubles. Bye, bearophile