Has TRUE always had a non-zero value?

前端 未结 22 826
予麋鹿
予麋鹿 2020-12-31 01:38

I have a co-worker that maintains that TRUE used to be defined as 0 and all other values were FALSE. I could swear that every language I\'ve worked with, if you could even

22条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 01:53

    I remember PL/1 had no boolean class. You could create a bit and assign it the result of a boolean expression. Then, to use it, you had to remember that 1 was false and 0 was true.

提交回复
热议问题