DMD 0.149 release

Chris Miller chris at dprogramming.com
Tue Mar 7 16:53:47 PST 2006


On Tue, 07 Mar 2006 19:47:38 -0500, Georg Wrede <georg.wrede at nospam.org>  
wrote:

> but more like
>
>      bool x = strcmp("foo", "bar");
>      if (!x) { /* do stuff */ }        // match
>      else { /* call the cops! */ }     // no match

You shouldn't even be doing that! You're inverting the meaning of true and  
false. Use int.

>
> Now what happens to
>
>      if (stcmp("foo", "bar")) {}

If this wasn't allowed I'd be furious.



More information about the Digitalmars-d-announce mailing list