POV-Ray : Newsgroups : povray.beta-test : Looping Dictionaries : Re: Looping Dictionaries Server Time
29 Nov 2021 22:40:11 EST (-0500)
  Re: Looping Dictionaries  
From: clipka
Date: 2 Dec 2018 00:01:04
Message: <5c036710@news.povray.org>
Am 01.12.2018 um 20:45 schrieb ingo:
> As the dictionary implementation seems to be based upon, or closely
> related to arrays, I tried to loop over a dict as if it where a Array.
> This doesnt work and yes, the docs are silent on this.
> Is it possible?
> Can it be made possible? (Are dicts kept in order?)

/Some/ mechanism to make it possible is on the ToDo list, but the plans 
are still quite fuzzy.

You could work around the lack of such a feature by maintaining a 
separate array of keys.

Post a reply to this message

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