home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,389 of 2,978   
   Jud McCranie to Jonas.Maebe@rug.SPAM.ac.ME.be.NOT   
   Re: Infinite Loops & other things   
   12 Feb 05 21:43:50   
   
   From: youknowwhat.mccranie@adelphia.net   
      
   On Sat, 12 Feb 2005 23:39:43 +0100, Jonas Maebe   
    wrote:   
      
   > I don't know whether there's any   
   >Pascal standard which mandates that ord(false) = 0 and ord(true) = 1.   
      
   I don't believe there is.  FWIW, Delphi help say this:   
      
   The four predefined Boolean types are Boolean, ByteBool, WordBool, and   
   LongBool. Boolean is the preferred type. The others exist to provide   
   compatibility with other languages and operating system libraries.   
      
   Boolean:   
   False < True	   
   Ord(False) = 0	   
   Ord(True) = 1	   
   Succ(False) = True   
   Pred(True) = False   
      
   ByteBool, WordBool, LongBool:   
   False <> True   
   Ord(False) = 0   
   Ord(True) <> 0   
   Succ(False) = True   
   Pred(False) = True   
      
   And I "second" everything you said.   
      
   ---   
   Replace you know what by j to email   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca