3 ms·
> Hence I learned to define true and false at the start of the code with realTrue=(1=1) and realFalse=(1=0) I'm sure the platforms / language you use make this
by VBprogrammer 7y ago
> Hence I learned to define true and false at the start of the code with realTrue=(1=1) and realFalse=(1=0)
I'm sure the platforms / language you use make this a sensible choice but I'm not going to lie, if I came across that in someones code I'd be screaming WTF at the top of my lungs.
- Zenst 7y agoI learned to code in the 70's, predating C99 and having to embrace many diverse platforms (we had more than one mainframe maker back then ;). But nice explanations here: https://stackoverflow.com/questions/17010041/why-define-true-1-1-in-a-c-boolean-macro-instead-of-simply-as-1 https://stackoverflow.com/questions/17010041/why-define-true... TL;DR portability