POV-Ray : Newsgroups : povray.binaries.scene-files : Quicksort in PoV-Ray? : Re: Quicksort in PoV-Ray? Server Time
1 Sep 2024 22:18:26 EDT (-0400)
  Re: Quicksort in PoV-Ray?  
From: Jörg 'Yadgar' Bleimann
Date: 30 Nov 2003 09:36:36
Message: <3FCA0F26.154101D4@gmx.de>
High!

Christopher James Huff schrieb:

> You might want to have a look at arrays.inc as well...
>
> > But there, Quicksort is
> > implemented as a recursive function (which returns no value),
> > now my question: is #macro equivalent to "non-returning" functions? Or
> > do I have to do it all as a series of nested loops?
>
> I'm not sure what you mean by macros being equivalent to non-returning
> functions. There is no requirement that a macro return a value...and
> recursion with macros does work.

Thank you for your suggestions... but meanwhile, I found it out on my own,
see "Heuraka! It works!".
I just translated the code from my C tutorial to PoV-Ray, and it works
perfectly!

See you in Khyberspace!

Yadgar


Post a reply to this message

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