array of elements of various sybtypes

bearophile bearophileHUGS at
Thu Jan 27 01:14:14 PST 2011


> Maybe, but (in this case) array literals are OK.

The are not OK. They need to use the lowest common supertype, and in this case they aren't doing it. If this is too much hard or unsafe or ambiguous to do, then D array literals need some syntax to allow the programmer to specify the missing semantics in a nice way.


More information about the Digitalmars-d-learn mailing list