| Deutsch English Français Italiano |
|
<vnjqf1$3om7j$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:38:04 -0500 Organization: A noiseless patient Spider Lines: 32 Message-ID: <vnjqf1$3om7j$1@dont-email.me> References: <vnipj8$3i2i9$1@dont-email.me> <vniue9$3j9pr$1@dont-email.me> <679d001e$0$713$14726298@news.sunsite.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 01 Feb 2025 01:39:00 +0100 (CET) Injection-Info: dont-email.me; posting-host="1c91ff51b6c9f54fb1726a9e95eff9f7"; logging-data="3954931"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gauEo8mxMe55PvnOyyKcLA+hBb6sz1xY=" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:LxgH/XYSWahMBQYIQ1TBMfaQacY= In-Reply-To: <679d001e$0$713$14726298@news.sunsite.dk> Bytes: 1989 On 1/31/2025 11:53 AM, Arne Vajhøj wrote: > On 1/31/2025 11:39 AM, Dave Froble wrote: >> On 1/31/2025 10:18 AM, Arne Vajhøj wrote: >>> Is it common to use: >>> >>> declare integer constant TRUE = -1 >>> declare integer constant FALSE = 0 >>> >>> >>> ? >> >> It works. Doesn't really matter if declared a constant. Zero is false, >> anything else is true. Using 1 vs -1 has been more my experience. > > I got the impression that the manual/compiler prefer -1 over 1. Manuals usually have a preference, but, can be incomplete. > print not 0% > > does print -1. That is an operation to flip the bits. The opposite of 0000000000000000 is 1111111111111111 ... -- 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