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,536 of 2,978   
   Heinrich Wolf to All   
   Re: Longint(), Word(), etc...   
   26 Apr 05 18:02:45   
   
   From: invalid@invalid.invalid   
      
   "Sm704"  wrote in message   
   news:1114489845.775653.225270@f14g2000cwb.googlegroups.com...   
      
   ...   
      
   > Is using longint() and word() common practice? I hardly ever see it   
   > used...   
      
   Hi,   
      
   think about portable code, that should communicate with some interface.   
   If the interface describes a 16 bit item, you should use WORD.   
   If the interface describes a 32 bit item, you should use DWORD.   
      
   If you would use INTEGER in place of WORD,   
   this might be correct for a 16 bit compiler,   
   but on a 32 bit compiler INTEGER is 32 bit.   
   LONGINT usually is 32 bit.   
   But I don't know what LONGINT   
   will be on a 64 bit compiler.   
      
   Regards,   
   Heiner   
      
   --- 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