> #local i = n;
> #while(i >= 0)
> #if(a[i] != 0)
> #declare n = i;
> #end
> #declare i = i - 1;
> #end
He, he... That's what a "real" programmer calls "good style". .. :)
These are the kind of things I never come up myself (I don't consider my
self a "real" programmer at all). But in my simplicity, I will like it
more this way:
#local i=0;
#while (i<n)
#if (a[i]!=0)
#break
#end
#local n=n+1
#end
...a pain it doesn't works, although I rarely need to use it with POV
scripts.
--
Jaime Vives Piqueres
La Persistencia de la Ignorancia
http://www.ignorancia.org/
Post a reply to this message
|