|
![](/i/fill.gif) |
On 4 Aug 2003 04:48:36 -0400, Warp <war### [at] tag povray org> 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
|
![](/i/fill.gif) |