POV-Ray : Newsgroups : povray.general : Is this a bug? : Re: Is this a bug? Server Time
6 Aug 2024 02:25:25 EDT (-0400)
  Re: Is this a bug?  
From:
Date: 19 Jun 2002 11:47:43
Message: <ta91huo23mk2ao7qg88kch57st3g8t385o@4ax.com>
On Wed, 19 Jun 2002 11:33:03 -0400, "Scott Wasson" <swa### [at] townispcom>
wrote:
> Conditional directives are nesting.  Therefore the #end on line 6 closes the
> #if on line 4

Yes, it closes #if and only #if, not SDL. Consider this example:

//START
  #declare O=
    #if(Condition)
      sphere{ y 1 rotate x*30
    #else
      box{ -1 1 translate z
    #end
    pigment{ rgb 1}
  }
//END

Should it report missed "}" in sphere or box ? It is valid statement and no
doubts what is result of this script - there is no such thing like layered
object.

ABX


Post a reply to this message

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