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,671 of 2,978   
   Jim Higgins to gvision@ntlworld.com   
   Re: Getting a real number from the keybo   
   29 May 05 15:32:49   
   
   From: me7@privacy.net   
      
   On Sun, 29 May 2005 01:36:51 GMT, in   
   , "Jason Burgon"   
    wrote:   
      
   >"Marco van de Voort"  wrote in message   
   >news:slrnd9ht76.1e7l.marcov@turtle.stack.nl...   
   >   
   >> In Delphi and the TP IDE this is certainly true. I was under the   
   >impression   
   >> this didn't happen outside of the IDE (IOW that the TP IDE or compile for   
   >> debug did the zeroing, and could be omitted in some cases) , but couldn't   
   >> duplicate this a few minutes ago. Maybe one of the more regular TP users   
   >can   
   >> chip in on this?   
   >   
   >BP7 and TP7 zero all global VARs, both inside and outside the IDE.   
      
   It may do so based on observation, but the manuals - don't ask me   
   where right now - state that uninitialized variables are   
   undefined as to content.  If you depend on this behavior of   
   BP/TP7, then your code may not run on TP6 or other Pascal   
   variations that do not zero global variables.  Regardless of what   
   BP/TP7 do, the definition of the Pascal language says   
   uninitialized variables are undefined; i.e., you can't depend on   
   their contents.   
      
   --- 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