home bbs files messages ]

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,313 of 264,096   
   Dave Froble to Simon Clubley   
   Re: basic BASIC question   
   31 Jan 25 19:49:05   
   
   From: davef@tsoft-inc.com   
      
   On 1/31/2025 1:28 PM, Simon Clubley wrote:   
   > On 2025-01-31, Arne Vajhøj  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  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   
      
   --- 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