POV-Ray : Newsgroups : povray.programming : URGENT: FRAME structure : Re: URGENT: FRAME structure Server Time
29 Jul 2024 00:26:03 EDT (-0400)
  Re: URGENT: FRAME structure  
From: Warp
Date: 20 Aug 2000 11:20:17
Message: <399ff730@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote:
: No you can't at least where #while loops are concerned. You would have
: to use an external program to get the same funcionality.

  Of course you can. Just write all the generated objects by hand.

: #macros could
: be eliminated without loss of funcionality however.

  If #while-loops are indispensable, then so are #macros. Just think about
recursive #macros. Although recursion is very similar to looping, it's
easy to make a recursive #macro which functionality cannot be made with
#while loops (because you would need a dynamic stack and there are no
such things in povray (or at least not any efficient one)).
  One example of recursive macros are tree generator macros.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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