POV-Ray : Newsgroups : povray.binaries.animations : POVigma: I just can't get it right! : Re: POVigma: I just can't get it right! Server Time
16 Apr 2024 03:14:38 EDT (-0400)
  Re: POVigma: I just can't get it right!  
From: clipka
Date: 30 Aug 2015 13:29:35
Message: <55e33d7f$1@news.povray.org>
Am 30.08.2015 um 08:20 schrieb Le_Forgeron:
> Le 29/08/2015 22:36, "Jörg \"Yadgar\" Bleimann" a écrit :
>> Hi(gh)!
> 
>> On 29.08.2015 19:30, Le_Forgeron wrote:
> 
>>> Rewrite the loop to avoid #break, using #else instead... might
>>> help.
> 
>> To be honest, I have no clue how to do this...
> 
> 
> You should try harder, because, contrary to C and Java, in povray SDL,
> #break does not jump out of a block (or loop).
> 
> #break is reserved to #switch, and jump to the next #end. Nothing
> less, nothing more. (and given the parser, it's not really a jump,
> just ignoring thinks until #end is found).
> 
> so, your code is not doing what you think it should do.

Your information about the #break statement is outdated since 2010-04-18 ;-)

As of Perforce change 4942 (included in 3.7.beta.37 and later), you can
also use #break in any #while, #loop or #macro block to leave the
respective construct early.


Post a reply to this message

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