4 ms·
The "bool" type, as well as defines for "true" and "false", already existed in <stdbool.h> [1]. What these proposals [2] intend to change is making them real ke
by duskwuff 5y ago
The "bool" type, as well as defines for "true" and "false", already existed in <stdbool.h> [1]. What these proposals [2] intend to change is making them real keywords, rather than macros which expand to _Bool and appropriate integer values.
[1]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdbool.h.html https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/st...
[2]: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2310r0.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p231... and http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2311r1.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p231...