|
![](/i/fill.gif) |
Ron Parker <ron### [at] povray org> wrote:
: This one might be a bit of an issue. Not everything that can be put in
: an array can be sorted. In fact, most things that can be put in an array
: are unsortable.
Then we have to be able to add a less-than-comparison operator to any
declarable object... :)
Of course for that operator to be useful it should be able to extract
data from the object itself (such as its coordinates or whatever).
By the way, sorting an array of numerical values can be done easy and
fast with a proper macro. Several array sorting macros (including mine) have
been posted here in other threads.
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |