POV-Ray : Newsgroups : povray.binaries.images : City SSC WIP 2 : Re: City SSC WIP 2 Server Time
11 Aug 2024 23:24:30 EDT (-0400)
  Re: City SSC WIP 2  
From: Dave Matthews
Date: 18 Feb 2004 12:06:08
Message: <40339b80$1@news.povray.org>
> All { braces must have a matching } brace. This scene just puts the 
> opening braces in the macro, and the closing braces after the calls to 
> that macro. Cleanly indented, the code's a lot easier to understand:
> 
> #macro C()
>     function {
>         pigment {crackle
> #end
> 
> #local A = C() solid}}
> 
> #local B = C() }}
> 
> This is equivalent to:
> 
> #local A = function {pigment {crackle solid}}
> 
> #local B = function {pigment {crackle}}
> 
OH.  Clever.  I guess that if I traced it out the whole code, I should 
have seen that.

Thanks

Dave Matthews


Post a reply to this message

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