The Expressiveness of D

Simen kjaeraas simen.kjaras at gmail.com
Tue Nov 2 11:14:05 PDT 2010


Lutger <lutger.blijdestijn at gmail.com> wrote:

> It is stated in TDPL that the ?: test should be used, and it already  
> works:
>
> auto a = [1,2,3.5];
> pragma(msg, typeof(a).stringof); // prints double[], not int[]

So it works for things that are not classes, then. That, to me, counts
as 'does not work correctly'. Filed as 5156.


-- 
Simen


More information about the Digitalmars-d mailing list