|
![](/i/fill.gif) |
Ken <tyl### [at] pacbell net> 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
|
![](/i/fill.gif) |