[Info-vax] basic BASIC question

Craig A. Berry craigberry at nospam.mac.com
Sat Feb 1 18:38:58 EST 2025


On 2/1/25 3:00 PM, Arne Vajhøj wrote:

> (in case someone wonder about C bool, then it is 8 bit!)

I don't think it has to be.  C99 says:

"An object declared as type _Bool is large enough to store the values 0
and 1."

8 bits are enough, but any integral type has enough bits.  "bool,"
"true," and "false" in stdbool.h are macros that can be overridden,
although doing so is described as "obsolescent" behavior.  It's probably
necessary because of the uses of bool before the standard had it.

I'm pretty sure I've seen bool defined as an int on VMS, but whether
that was something VAX C did for you or was just some what some program
did in the absence of anything available from the (old) compiler I don't
remember.


More information about the Info-vax mailing list