Incrementing bool produces cool. Incrementing it again produces dool, so don’t do that.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
made it extra truthy.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
alternative truth, obviously.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I imagine some too clever asshole could do something like this, which would be false the first time but true each time thereafterpic.twitter.com/GOjri8wEiZ
-
the prefix operator though (++boolThing) seems truly useless though
End of conversation
New conversation -
-
-
Maybe it overflowed and functioned as a bad negation?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Probably just a holdover from them being essentially ints under the hood.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
int main() { bool x = false; cout << x << endl; x++; cout << x << endl; x++; cout << x << endl; } output: 0 1 1
-
I get compiler warnings, though.
End of conversation
New conversation -
-
-
@geofft useful on multi-level secure systems, which offer FALSE(0) TRUE(1) VERIFIABLE(2) TOP_TRUE(3) VERIFIED(4) and proprietary extnsThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.