POV-Ray : Newsgroups : povray.general : does #break work as intended with #if statements? : Re: does #break work as intended with #if statements? Server Time
5 Aug 2024 16:15:03 EDT (-0400)
  Re: does #break work as intended with #if statements?  
From: Christopher James Huff
Date: 20 Aug 2002 18:21:27
Message: <chrishuff-02B72D.17070020082002@netplex.aussie.org>
In article <3d6246b5@news.povray.org>,
 "Thorsten Froehlich" <tho### [at] trfde> wrote:

> >   I don't. #break and #continue would be useful inside loops. Without them
> > you have to make kludges which make parsing slower.
> 
> Not with properly designed algorithms ;-)

I have occasionally found break useful, but rarely...I've never needed 
either one in POV. And I've never had to use continue.
In some cases I think using them is a good thing, I don't consider them 
a forbidden statement like goto. You just need to be sure you need them, 
and I don't think their absence is a problem for POV. Same as for and 
do-while loops: would be nice but isn't necessary.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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