On 2008-11-09 19:50, deadimp wrote:
Mebbe the naiive expectations arise because most compilers (those for D, C++, C#, C, Java) take the expression `15 + 0.6` and returns a double - the highest general 'blanketing' type - even though the first operand is an int. I forgot what this concept was called, though...
I believe it's called type promotion (see http://en.wikipedia.org/wiki/Type_polymorphism#Overloading).

Reply via email to