Willem said:
Richard wrote:
Please retain my surname when quoting, Willem - not because I'm precious
about it or anything, but simply to disambiguate me from the Riley troll.
Thanks.
)
) Um, why not just sort pointers?
Good idea, although that doubles the amount of data that qsort
has to shuffle. But maybe we can do without. How about:
Yes, as soon as you said "although that doubles", I thought of a way to do
without. (Yes, same way that you thought of, although it took me a little
longer!)
<snip>
Although that's still a lot of extra overhead just to avoid
a global pointer.
<shrugIt's a point of view. Some people would see the overhead as
insignificant compared to the maintainability issues of file scope
objects.
I do wish qsort allowed a void *extra, though.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999