POV-Ray : Newsgroups : povray.general : Question 'bout indentation (no flamewar) : Re: Question 'bout indentation (no flamewar) Server Time
12 Aug 2024 03:28:23 EDT (-0400)
  Re: Question 'bout indentation (no flamewar)  
From: Thorsten Froehlich
Date: 29 Mar 1999 13:08:05
Message: <36ffc185.0@news.povray.org>
In article <m3k### [at] clodomirrezelenstfr> , 
rol### [at] casimirrezelenstfr (Roland Mas) wrote:

>   Hi all.
>
> I have a question about indentation.  I fear it might degenerate
> into another flamewar, but heh, such is life.  On the other hand, it
> might bring some arguments to Ken Tyler.
>
>   Suppose you have the following lines:
>
> #if (A > 0)
> union {
> #endif
> sphere { ... }
> #if (A > 0)
> sphere { ... }
> }
> #endif
>
>   How would you indent?


                        #if (A > 0)
union
{
                        #endif
    sphere { ... }
                        #if (A > 0)
    sphere { ... }
}
                        #endif



OR BETTER


#declare mySphere1 = sphere { ... }
#declare mySphere2 = sphere { ... }

#if (A > 0)
union
{
    sphere { mySphere1 }
    sphere { mySphere2 }
}
#else
sphere { mySphere1 }
#endif


    Thorsten


Post a reply to this message

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