home bbs files messages ]

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

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

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

   Message 1,906 of 2,753   
   Marco van de Voort to George Neuner   
   Re: Pascal design, was Testing strategy    
   22 Jun 10 11:17:52   
   
   From: marcov@turtle.stack.nl   
      
   On 2010-06-21, George Neuner  wrote:   
   > Pascal's FOR loop is required to terminate in all cases - deliberately   
   > causing an infinite loop is illegal.  The compiler is required to   
   > check that  step <> zero  on entry to the loop and it is illegal to   
   > modify any of the loop control values (index, finish, step) from   
   > within the body of the loop.   
      
   (isn't the loopvar also required to be a ordinal local var? Or is that   
   Borland dialects only?  Anyway it is a rule that also excludes a lot of   
   dodgy use cases)   
      
   --- 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