Re: Overloading function with a generic function fails

2011-05-12 Thread Andrei Alexandrescu
On 5/12/11 12:27 PM, Andrej Mitrovic wrote: Known issue, it's in bugzilla somewhere. Yah, partial ordering is not fully implemented across template and non-template functions. Thanks Abid for the report. Andrei

Re: Overloading function with a generic function fails

2011-05-12 Thread Andrej Mitrovic
Known issue, it's in bugzilla somewhere.

Overloading function with a generic function fails

2011-05-12 Thread Abid H. Mujtaba
This is another example from "The D Programming Language" by Andrei Alexandrescu. Compiling the following: // Code in test.d: void transmogrify( uint x ) {} void transmogrify( long x ) {} void transmogirfy(T)( T x ) {} unittest { transmogrify( 42 ) ; } fails with the following error (when c