Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.os.vms    |    DEC's VAX* line of computers & VMS.    |    264,096 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 262,312 of 264,096    |
|    Dave Froble to All    |
|    Re: basic BASIC question    |
|    31 Jan 25 19:38:04    |
      From: davef@tsoft-inc.com              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              --- SoupGate-DOS v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca