DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement
Walter Bright
newshound2 at digitalmars.com
Mon Nov 12 21:29:20 UTC 2018
On 11/12/2018 2:05 AM, Jonathan M Davis wrote:
> *sigh* Well, I guess that's the core issue right there. A lot of us would
> strongly disagree with the idea that bool is an integral type and consider
> code that treats it as such as inviting bugs.
In my college daze I was learning programming alongside designing and building
digital circuits, and later software for FPGAs and PLDs (ABEL). The notions of
True, T, 1, !0 (from C and Asm), and +5V are all completely interchangeable in
my mind.
I once worked with software that defined true as 0 and false as 1, and it was
like being in London where all your intuition about cars is wrong. (I'd look to
the left when stepping into the street, just to get nearly smacked by a car
coming from the right.)
More information about the Digitalmars-d-announce
mailing list