|
![](/i/fill.gif) |
In article <slr### [at] teal h hjp at>,
hjp### [at] SiKitu wsr ac at (Peter J. Holzer) wrote:
> Since a C for loop:
...
> is just an abbreviation for
...
> (well, if you ignore continue, anyway)
> and we already have a while loop in Povray, that shouldn't be too hard.
It might not be easy to internally convert a for loop to a while loop,
it may require a completely separate loop.
> Oh. I didn't notice that. Cool! I always thought that redeclaring a
> variable at every assignment is somewhat inelegant.
That shortcut still redeclares the variable, it is just a typing
shortcut, but I agree that it is inelegant to redeclare a variable just
to assign to it. That is the exact reason I added a #set keyword in my
patch, so you can use a separate keyword for modifying variables.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |