Assert Expressions???

Gilles G. schaouette at free.fr
Thu Jul 26 15:01:23 PDT 2007


I tried this code and... it won't produce any error.  I still don't understand why. Could you please report the (odd) explaination?

--
Gilles 
BCS Wrote:

> this is just odd
> 
> void main()
> {
>   bool a;
>   a ? assert(a) : assert(!a);
> }

> 
> http://www.digitalmars.com/d/expression.html
> 
> 



More information about the Digitalmars-d-learn mailing list