array literal element types

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Nov 12 13:56:35 PST 2009


Walter Bright wrote:
> Currently, the type is determined by the type of the first element and 
> the rest are implicitly cast to it.
> 
> I propose changing it to being the type produced by applying the ?: 
> logic repeatedly to all the elements.

Well take a number :o). It's been proposed by many and many times over. 
Glad to see you're looking into it.

Andrei



More information about the Digitalmars-d mailing list