|
|
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
|
|