POV-Ray : Newsgroups : povray.beta-test : recursion with no recursion : Re: recursion with no recursion Server Time
30 Jul 2024 02:14:06 EDT (-0400)
  Re: recursion with no recursion  
From:
Date: 22 Jan 2002 11:19:30
Message: <m04r4u01k0ll0af58u45bgj3ao5p5hpqbv@4ax.com>
On Tue, 22 Jan 2002 17:08:18 +0100, "Thorsten Froehlich" <tho### [at] trfde>
wrote:
> #declare foo=function{x}
> #declare foo2=function{foo(x,0,1)}
> #undef foo
> #declare foo=function{x}
...
> (internally functions are tracked via unique numbers).

Thank You for explanation. And little additional question: is below script
supposed in this design to be also treated as recursion ?

#macro F()
  function(k,l){
    #local E=function(c){c};
    select(E(k+l)
    #undef E
    ,0,1)
  }
#end
#declare E=F();

ABX


Post a reply to this message

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