"SharkD" <nomail@nomail> wrote:
> In POV SDL you can overlap or intersect blocks. For instance something like the
> following code would be valid:
>
> pigment
> {
> #if (true)
> color rgb x
> }
> #else
> color rgb y
> }
> #end
Valid, yes... but collapsible code blocks might actually encourage better coding
behavior. In your example, the preferred alternative is obvious:
pigment
{
#if (true)
color rgb x
#else
color rgb y
#end
}
I can't really think of a valid circumstance where the 'looser' form is
necessary (or advantageous)...
Post a reply to this message
|