POV-Ray : Newsgroups : povray.beta-test : recursion with no recursion : recursion with no recursion Server Time
30 Jul 2024 02:27:57 EDT (-0400)
  recursion with no recursion  
From:
Date: 22 Jan 2002 09:30:42
Message: <ditq4u4etl5k0aq6nn9ikqk82fmmvc3h38@4ax.com>
POV 3.5 b 10.icl on PII 233 128 MB with NT 4 Sp 6

Following code returns parse error about recursion but there is no recursion

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

Output:

function(k,l){select(E(k+l),0,1)} <----ERROR
Parse Error: Recursive function calls are not allowed!

ABX


Post a reply to this message

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