POV-Ray : Newsgroups : povray.off-topic : Apparently it didn't catch on : Re: Apparently it didn't catch on Server Time
29 Jul 2024 02:26:28 EDT (-0400)
  Re: Apparently it didn't catch on  
From: Francois Labreque
Date: 25 Feb 2013 09:42:42
Message: <512b7862$1@news.povray.org>

>  >Problem #2 is "how do we support recursion?" They chose the solution
>  >"you don't". Which seems reasonable; how many people actually want to
>  >use that feature? Do we really want to complicate the interface further
>  >just to make those guys happy?
>
> The function definition can use the standard Excel =IF(,,) function
> to make a conditional result to stop the recursion.
> The rest would be provided by the standard mechanism of function calls.
>

I think Andy was talking about how Excel would support recursion, not 
how a user would implement a recusive function.  Currently Excel would 
throw a "Circular reference" error.


-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   gmail.com     */}camera{orthographic location<6,1.25,-6>look_at a }


Post a reply to this message

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