POV-Ray : Newsgroups : povray.general : Suggestion: array functions : Re: Suggestion: array functions Server Time
8 Aug 2024 06:17:21 EDT (-0400)
  Re: Suggestion: array functions  
From: Warp
Date: 14 Feb 2001 05:30:59
Message: <3a8a5e63@news.povray.org>
Ron Parker <ron### [at] povrayorg> 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

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