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 2,023 of 2,978   
   Marco van de Voort to dennishartvigsen@ofir.dk   
   Re: Variables   
   20 Jan 06 20:05:00   
   
   From: marcov@stack.nl   
      
   On 2006-01-20, dh8000  wrote:   
   >>   
   >> Now subresult doesn't "belong" to a procedure anymore, but is for the   
   >> whole   
   >> .pas file (main program or unit)   
   >   
   > Yes but can't i make it so the variable subresult only belong to Procedure   
   > SubCalculate and Procedure Calculate AND not to the rest of the unit.   
      
   Place the two in a different unit. But without any other changes, no it is   
   not possible. Moreover, "subresult" in procedure A might not even exist when   
   you are in routine B. Local variables are volatile and only exist during the   
   time a procedure is running.   
      
   --- 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