POV-Ray : Newsgroups : povray.unofficial.patches : My personal wishlist : Re: My personal wishlist Server Time
2 Sep 2024 22:15:50 EDT (-0400)
  Re: My personal wishlist  
From: Ron Parker
Date: 28 Feb 2000 08:24:11
Message: <38ba76fb$1@news.povray.org>
On 28 Feb 2000 03:02:18 -0500, Nieminen Juha wrote:
>Ron Parker <ron### [at] povrayorg> wrote:
>: I want an array that acts like a C++ STL map, too.
>
>  I think it's technically called "associative array".

Actually, I knew that, since I actually use them in Perl rather than
in C++.  I was just trying for the parallelism with the original comment. :)

Perl doesn't have what you'd call "iterators" per se.  To iterate over an
associative array in Perl, you do:

  for $index ( keys( %assoc_array ) ) {
    do_stuff_with( $assoc_array{$index} )
  }

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

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