POV-Ray : Newsgroups : povray.bugreports : problem with '#break' in macro : Re: problem with '#break' in macro Server Time
29 Mar 2024 02:11:41 EDT (-0400)
  Re: problem with '#break' in macro  
From: Kenneth
Date: 10 Sep 2021 05:25:00
Message: <web.613b2408d2ea10ff4cef624e6e066e29@news.povray.org>
[Windows 10, using one of the v3.8.0 'experimental' builds that piggy-back on
v3.7.0]

Confirmed, when  m_flag(false).

I also tried the #for-loop example given in the docs (slightly modified)...

#declare R = seed(4711);
#for (I, 1, 10)
  #if (rand(R) < 1.1)
     #break // terminate loop early
  #else
   #debug concat(str(I,0,0), " iterations and counting\n")
  #end
#end

Same fatal error message.

It would seem that these additional uses of #break were never actually
implemented(?)...or maybe that there is some undocumented extra syntax missing.

Just guesses, of course.


Post a reply to this message

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