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
|