POV-Ray : Newsgroups : povray.general : macro - without () : Re: macro - without () Server Time
5 Aug 2024 16:17:02 EDT (-0400)
  Re: macro - without ()  
From: TinCanMan
Date: 2 Oct 2002 09:22:15
Message: <3d9af307$1@news.povray.org>
"Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote in message
news:Xns### [at] 204213191226...
> Would it be a big problem to allow syntax  :
>
> #macro finWater1 reflection { .01 .2 } #end
> finish { finWater1 }
>
> instead of  finish { finWater1() }
>

I don't see the point.  Usually macros are used to pass new variables into
repeated code i.e,

 #macro finWater1 (minref,maxref)
    reflection { minref,maxref }
#end
finish { finWater1(.01,.2) }

Since you are not passing variables you should just use a #declare,

#declare finWater1= finish{reflection { .01 .2 }}
finish{finWater1}

-tgq


Post a reply to this message

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