Deutsch   English   Français   Italiano  
<vnjr3p$3oq2p$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: Dave Froble <davef@tsoft-inc.com>
Newsgroups: comp.os.vms
Subject: Re: basic BASIC question
Date: Fri, 31 Jan 2025 19:49:05 -0500
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <vnjr3p$3oq2p$1@dont-email.me>
References: <vnipj8$3i2i9$1@dont-email.me> <vnj4pb$3kfrs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 01 Feb 2025 01:50:01 +0100 (CET)
Injection-Info: dont-email.me; posting-host="1c91ff51b6c9f54fb1726a9e95eff9f7";
	logging-data="3958873"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX190a1RThiv6b18GqpTX+Q6C+9hD/FgI1YY="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:7TqYswJNEqehbs9psZAALhoyd7s=
In-Reply-To: <vnj4pb$3kfrs$1@dont-email.me>
Bytes: 1956

On 1/31/2025 1:28 PM, Simon Clubley wrote:
> On 2025-01-31, Arne Vajhøj <arne@vajhoej.dk> wrote:
>> Is it common to use:
>>
>> declare integer const
ant TRUE = -1
>> declare integer constant FALSE = 0
>>
>
> Oh goody. The "good" old days, when TRUE did not equal TRUE, are back. :-)
>
> Simon.
>

Not sure what that means ...

In any case, consider testing for bit settings.  Assume that the bit value "4", 
that's bit 2 set, and wanting to test for that particular bit.

If <variable/constant/whatever> AND 4 then print "True", else print "False"

If only -1 was "true", then that statement would not work.  That would be rather 
sad.  So, non-zero being true is a good implementation.


-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486