Re: Overloading Generic and non-generic functions

2010-10-14 Thread Simen kjaeraas
Andrej Mitrovic wrote: AFAIK the following should be allowed, but it's not (v2.048): void test(uint) { } void test(T)(T value) { } void main() { test(42); test("hello"); } These end up conflicting with each other. From what I've read in TDPL we should be able to overload generic

Overloading Generic and non-generic functions

2010-10-14 Thread Andrej Mitrovic
AFAIK the following should be allowed, but it's not (v2.048): void test(uint) { } void test(T)(T value) { } void main() { test(42); test("hello"); } These end up conflicting with each other. From what I've read in TDPL we should be able to overload generic and nongeneric functions, th