From: Xavier Noria Date: 2007-11-18T03:00:11+09:00 Subject: Re: Hash -> Struct On Nov 17, 2007, at 6:54 PM, Robert Dober wrote: > On Nov 17, 2007 5:47 PM, Trans wrote: >> Given that a hash is not ordered, is this reliable? >> >> h = { :a=>1, :b=>2 } >> Struct.new(*h.keys).new(*h.values) >> => # a=1, b=2> > by definition not, I would never bet on it, That's guaranteed to work in Perl. Could it be the case that it works but it is undocumented in Ruby? -- fxn