POV-Ray : Newsgroups : povray.general : fundamental question re: #switch/#case/#break : Re: fundamental question re: #switch/#case/#break Server Time
30 Jul 2024 00:22:03 EDT (-0400)
  Re: fundamental question re: #switch/#case/#break  
From: Kenneth
Date: 26 Nov 2010 02:55:01
Message: <web.4cef65d92f7b65a8196b08580@news.povray.org>
Jim Holsenback <jho### [at] povrayorg> wrote:
> On 11/25/2010 02:24 PM, "Jérôme M. Berger" wrote:
> > The doc explicitly states the opposite: "parsing continues until a
> > #break, *#else* or #end directive is reached", so this is a bug
> > (either in povray or in the docs).
> >
>
> There was a bug discovered with the #break directive behavior that was
> addressed (with enhancements) by Change 4942 on 2010/04/18 by
> clipka@cli-pc-xp64 ... I believe things "jive" now

Thanks, Jim. (Clipka's Change 4942 is quoted verbatim in the WIKI, I believe.)

So, just so I understand POV's *current* behavior (beta 39): The need for a
#break before #else is *no longer* necessary to avoid the 'cascading
TRUE behavior? I.e., (as a simple analogy) does #else now have an 'implied'
#break before it? Sorry, I'm still having a bit of trouble understanding change
4942 if there's NO #break before an #else.

I guess one easy way to find out would be to run my 'missing #break before
#else' code test in beta 39, to see what happens. Could..uh..someone do that?
:-)

Ken


Post a reply to this message

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