POV-Ray : Newsgroups : povray.programming : Re: Pains in rendering complex polygons : Re: Pains in rendering complex polygons Server Time
5 Jul 2024 16:08:14 EDT (-0400)
  Re: Pains in rendering complex polygons  
From: ABX
Date: 4 Aug 2003 05:56:53
Message: <04bsivobl3m0omh1leh6mc2i0i2hr9a4dh@4ax.com>
On 4 Aug 2003 04:48:36 -0400, Warp <war### [at] tagpovrayorg> wrote:
> > Omitting the comma happens to work for this particular case, but there
> > are similar situations where commas are required.
>
>  Can you cite an example?

At least commas are necessary in parts of function parser. Below example does
not work without commas.

#local Params=2;

#local F=array[5];

#local F[0]=function(a){0};
#local F[1]=function(a,b){0};
#local F[2]=function(a,b,c){0};
#local F[3]=function(a,b,c,d){0};
#local F[4]=function(a,b,c,d,e){0};

#macro Do(c)
  //#if(c>0),#end  /* <-- uncomment this line to make it working */
  c
#end

#local f=F[Params-1];
#local my_f=function{f(#local C=0;#while(C<Params)Do(C)#local C=C+1;#end)};

ABX


Post a reply to this message

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