User Tools

Site Tools


negix:truefalsefilenotfound

True, False, File not found

Hilarious. Too great a comment not to make an article of it. :-D

As comment to my previous article, GlassX made a reference to The Daily WTF, where Alex Papadimoulis made a tongue-in-cheek comment on the following code snippet:

enum Bool
{
    True,
    False,
    FileNotFound
};

Even better than the initial laugh, however, was the ensuing comments:

Anonymous: The more subtle WTF is that, by default, True is 0 and False is 1. Which is completely bass-ackwards.
rikkus: UNIX would beg to differ:

   $ true; echo $?
   0
   $ false; echo $?
   1
Maurits: I take it you’re assuming that UNIX is not completely bass-ackwards?

Game, Set, and Match. ;-)

negix/truefalsefilenotfound.txt · Last modified: 2018/09/10 16:21 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki