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
6 May 2024 14:08:55 EDT (-0400)
  Re: I want to be rid of my stupid mistakes  
From: clipka
Date: 20 Aug 2009 05:39:48
Message: <4a8d19e4$1@news.povray.org>
Nicolas Alvarez schrieb:
> #declare I=0;
> #while (I < Limit)
>    //...
> #end
> 
> If neither 'I' nor 'Limit' are ever mentioned inside the loop, it's
> infinite.

Not necessarily:

#macro Next()
   #declare I=I+1;
#end

#declare I=0;
#while (I < Limit)
   Next()
#end

No mention of I anywhere in the loop, yet perfectly finite.

You *must* dig into *every* macro to catch this.


Post a reply to this message

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