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 08:51:43 EDT (-0400)
  Re: I want to be rid of my stupid mistakes  
From: scott
Date: 20 Aug 2009 10:53:35
Message: <4a8d636f$1@news.povray.org>
>  It doesn't necessarily parse it every time. You could have something 
> like:
>
> #declare I=0;
> #while (I < Limit)
>    #if(rand(someSeed) < 0.5)
>        Next()
>    #end
> #end

Ah yes, I think the conclusion we came to before is that anything that 
involves macro calls has to be assumed finite, because as clipka said you 
would need to search all macros to see if 'I' was redefinied anywhere, and 
that seems a bit wasteful.


Post a reply to this message

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