From: Austin Ziegler Date: 2004-12-02T23:49:47+09:00 Subject: Re: ordered hash ? On Thu, 2 Dec 2004 23:37:34 +0900, Nikolai Weibull wrote: > * itsme213 [Dec 02, 2004 14:00]: > > Is there a pure-ruby ordered hash? I'm looking for something that will > > preserve the order in which key/value pairs were entered. The one on > > RAA is buggy http://raa.ruby-lang.org/project/orderedhash/ > > Having an ordered Hash is like saying that arrays should be indexed by > strings--it's simply not what they are meant to be. Be that as it may, it is still necessary to have an insertion-ordered hash-like object. I use it in PDF::Writer for page objects that can be referred to meaningfully -- but still render in the order in which they were inserted. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca