Re: Associative value order

2014-08-06 Thread via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 18:33:16 UTC, Ary Borenszweig wrote: On 8/6/14, 2:59 PM, H. S. Teoh via Digitalmars-d-learn wrote: On Wed, Aug 06, 2014 at 05:54:23PM +, Patrick via Digitalmars-d-learn wrote: I know that there is no prescribed order that the .values array will be sorted in, h

Re: Associative value order

2014-08-06 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Aug 06, 2014 at 03:33:15PM -0300, Ary Borenszweig via Digitalmars-d-learn wrote: [...] > Why is a dictionary something built-in the language? It's actually one of the things I really liked about D when I was first considering it. I hated the fact that it took until C++11 to even *get* a

Re: Associative value order

2014-08-06 Thread Ary Borenszweig via Digitalmars-d-learn
On 8/6/14, 2:59 PM, H. S. Teoh via Digitalmars-d-learn wrote: On Wed, Aug 06, 2014 at 05:54:23PM +, Patrick via Digitalmars-d-learn wrote: I know that there is no prescribed order that the .values array will be sorted in, however I'm curious if the order is deterministic based on keys. If I

Re: Associative value order

2014-08-06 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Aug 06, 2014 at 05:54:23PM +, Patrick via Digitalmars-d-learn wrote: > I know that there is no prescribed order that the .values array will > be sorted in, however I'm curious if the order is deterministic based > on keys. > > If I have two associative arrays with strings for keys and

Associative value order

2014-08-06 Thread Patrick via Digitalmars-d-learn
I know that there is no prescribed order that the .values array will be sorted in, however I'm curious if the order is deterministic based on keys. If I have two associative arrays with strings for keys and ints for values and they each have an identical set of keys, would the .values propert