|
|
Warp wrote:
>
> > Why do...until() instead of do...while()? Similar constructs, but
> > do...while() seems more common.
>
> Because #until is unambiguous to the parser.
> When the POV-Ray parser sees the #do and a bit forward it sees a #while,
> it has no way of knowing whether the #while is ending the #do or whether
> it's starting a #while-loop.
> Using #until completely disambiguates this.
>
I'd use the pascal version:
#repeat
#until ()
this probably would avoid confusion when people simply assume it would
work like in C when they see a #do.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|