From: Joel VanderWerf Date: 2007-10-09T07:24:41+09:00 Subject: Re: Ordered Hashes in 1.9? David Flanagan wrote: > Yukihiro Matsumoto wrote: >> Hi, >> >> In message "Re: Ordered Hashes in 1.9?" >> on Mon, 8 Oct 2007 22:24:36 +0900, Michael Neumann >> writes: >> >> |It really seems that 1.9 got ordered hashes by default. Can anyone >> |confirm my observations? >> >> Yes, it preserves order of keys inserted. >> >> matz. > > Is this an implementation detail, or is it part of the specification? A related question: what does the following output? h1 = {1=>2, 3=>4} h2 = {3=>4, 1=>2} p(h1==h2) -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407