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:17:29 EDT (-0400)
  Re: does #break work as intended with #if statements?  
From: jfmiller
Date: 20 Aug 2002 20:55:29
Message: <3d62e501@news.povray.org>
While not strictly necessary, it would be nice to have a C style "for" loop.
I've toyed around with the idea of implimneting it as a macro, but the
deliniators tend to get in the way.  Has anyone already done this?  If not
I'll keep working on my own.

JFMILLER

"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> 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.