On Apr  6, 2023, Bernhard Reutner-Fischer <rep.dot....@gmail.com> wrote:

> 29 For C_BOOL, the internal representation of .TRUE._C_BOOL and
> .FALSE._C_BOOL shall be the same as those of
> 30 the C values (_Bool)1 and (_Bool)0 respectively.

I'm not changing any of the standard types, FWIW.  The proposed
extension enables alternate boolean types to be introduced, with
extra checking for hardening.

> I personally like your proposed 0 and ~0, that's probably pretty robust.

That is only a default.  Certain applications may benefit from other
values.  0xa5 and 0x5a seem to make a good combination too.

-- 
Alexandre Oliva, happy hacker                https://FSFLA.org/blogs/lxo/
   Free Software Activist                       GNU Toolchain Engineer
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>

Reply via email to