| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Classes |
JK> CC> been so much easier if true was actually defined somewhere.
JK> #define FALSE (0 == 1)
JK> #define TRUE (!FALSE)
Why couldn't that be done as part of the language?
(a == TRUE)
(a == !FALSE)
(a == !(0 == 1))
(a == !0)
(a == "some other value than zero that a specific compiler uses")
It should work in all cases, unless I'm messing something.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.