dmd 1.046 and 2.031 releases

bearophile bearophileHUGS at lycos.com
Fri Jul 17 07:15:59 PDT 2009


Steven Schveighoffer:
> Does this compile:
> 
> class C {}
> 
> ubyte foo(C n)
> {
>    return true ? 255 : n;
> }
> 
> (don't have the latest compiler installed yet, so I couldn't check it  
> myself)

It doesn't compile (DMD v2.031):
temp.d(5): Error: incompatible types for ((255) ? (n)): 'int' and 'temp.C'

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list