POV-Ray : Newsgroups : povray.pov4.discussion.general : I want to be rid of my stupid mistakes : Re: I want to be rid of my stupid mistakes Server Time
30 Apr 2024 17:58:25 EDT (-0400)
  Re: I want to be rid of my stupid mistakes  
From: Warp
Date: 21 Jul 2009 08:01:51
Message: <4a65ae2f@news.povray.org>
scott <sco### [at] scottcom> wrote:
> Impossible to catch all infinite loops, but the parser could check to make 
> sure at least one of the variables mentioned in the #while condition is 
> reassigned within the loop.  That would catch a lot of mistakes (eg 
> forgetting to increment the index variable).

  What if it's not incremented within the loop? Maybe it's incremented
elsewhere (eg. inside a macro called from the loop).

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.