Array initialization with common base - Best way?

Carl Clark carlclark at lavabit.com
Mon Nov 10 09:42:31 PST 2008


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).


More information about the Digitalmars-d-learn mailing list