| Deutsch English Français Italiano |
|
<vnmbai$avjp$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: "Craig A. Berry" <craigberry@nospam.mac.com> Newsgroups: comp.os.vms Subject: Re: basic BASIC question Date: Sat, 1 Feb 2025 17:38:58 -0600 Organization: A noiseless patient Spider Lines: 19 Message-ID: <vnmbai$avjp$1@dont-email.me> References: <vnipj8$3i2i9$1@dont-email.me> <679d001e$0$713$14726298@news.sunsite.dk> <vnj81l$ga7$4@reader2.panix.com> <679d26bd$0$713$14726298@news.sunsite.dk> <vnjhfb$gk1$1@reader2.panix.com> <679d7b05$0$713$14726298@news.sunsite.dk> <679d7b49$0$713$14726298@news.sunsite.dk> <679e8b61$0$708$14726298@news.sunsite.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 02 Feb 2025 00:38:59 +0100 (CET) Injection-Info: dont-email.me; posting-host="46cf693f1c8974337f2c0634a04c8baf"; logging-data="360057"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+C4CWvmm3JNicEacPDghfJCwcE5y/HQVk=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Ise/C7M5gMafVvJHuxGNz7hoF1M= Content-Language: en-US In-Reply-To: <679e8b61$0$708$14726298@news.sunsite.dk> Bytes: 2038 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.