Re: itfi limitation or bug on my part?

2010-08-07 Thread Brad Roberts
On 8/7/2010 12:42 PM, Don wrote: > Brad Roberts wrote: >> module test; >> >> void main() >> { >> int[] foos; >> func1(foos); >> } >> >> void func1(T)(const T[] foos) >> { >> T afoo; >> func2(foos, afoo); >> } >> >> void func2(T)(const T[] foos, out T afoo) >> { >> } >> >> $ dmd -c t

Re: itfi limitation or bug on my part?

2010-08-07 Thread Don
Brad Roberts wrote: module test; void main() { int[] foos; func1(foos); } void func1(T)(const T[] foos) { T afoo; func2(foos, afoo); } void func2(T)(const T[] foos, out T afoo) { } $ dmd -c test.d test.d(12): Error: template test.func2(T) does not match any function template d

itfi limitation or bug on my part?

2010-08-07 Thread Brad Roberts
module test; void main() { int[] foos; func1(foos); } void func1(T)(const T[] foos) { T afoo; func2(foos, afoo); } void func2(T)(const T[] foos, out T afoo) { } $ dmd -c test.d test.d(12): Error: template test.func2(T) does not match any function template declaration test.d(12):