POV-Ray : Newsgroups : povray.unofficial.patches : Some ideas about SDL enhancements : Re: Some ideas about SDL enhancements Server Time
3 Jul 2024 05:27:54 EDT (-0400)
  Re: Some ideas about SDL enhancements  
From: Christoph Hormann
Date: 1 Apr 2003 08:50:21
Message: <3E89991C.FF17D0A4@gmx.de>
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

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