Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15324

Re: Associative array entries order differs from declaration

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Associative array entries order differs from declaration
Date 2019-08-15 11:36 -0400
Message-ID <mailman.171.1565883416.30381.bug-bash@gnu.org> (permalink)
References <71660c94-58cc-c87f-9e5f-c0aa32013097@noiraude.net> <f28a8efb-5942-2aab-3ec8-7cd6a0d6d050@case.edu>

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 8/15/19 11:26 AM, Léa Gris wrote:
> While dealing with getting keys of arrays, I found out that associative
> array keys where not registered in the same order as declared:

There's no guarantee that will happen. It's a hash table.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Associative array entries order differs from declaration Chet Ramey <chet.ramey@case.edu> - 2019-08-15 11:36 -0400

csiph-web