[Issue 2065] Return value of std.file.exists() is inverted.

Janice Caron caron800 at googlemail.com
Mon May 12 14:35:28 PDT 2008


On 12/05/2008, d-bugmail at puremagic.com <d-bugmail at puremagic.com> wrote:
>  I'm having a hard time seeing how:
>
>  return (result == 0xFFFFFFFF) ? 0 : 1;
>
>  is different from:
>
>  return result != 0xFFFFFFFF;

It's certainly conceptually different. The first one returns an int,
with possible values 0 and 1. The second one returns a bool with
possible values false and true.


More information about the Digitalmars-d-bugs mailing list