Tomek Sowiński napisał:

> I didn't know you have to put them:)
> 
> http://www.digitalmars.com/d/2.0/expression.html#ArrayLiteral
> 
> "The type of the first element is taken to be the type of all the elements, 
> and all elements are implicitly converted
> to that type."
> 
> But now (2.051) I tested and it seems it goes for the common type. No mention 
> on the change log... Was that changed?
> If so, why?

OK, got it:
http://www.digitalmars.com/d/archives/digitalmars/D/array_literal_element_types_100812.html

Docs need fixing, though.

-- 
Tomek

Reply via email to