Thomas B. wrote:
> Peña, Botp wrote:
>> From: Me Me [mailto:emanuelef / tiscali.it]
>> # I would like to know if it's possible to insert values in a Hash and
>> # then extract all of them in the same insertion order.
>> 
>> only in ruby 1.9
> 
> Could anybody explain why this feature was added? Isn't it going to slow 
> down the operations on the Hash? I think it is useless to mix Array with 
> Hash.
> 
> TPR.

well, basically I just need a Hash to use String as indexes like

sourceInfo = Hash.new
sourceInfo["var1"]=123
sourceInfo["var2"]=2
sourceInfo["var3"]=3
sourceInfo["var4"]=23

and then print them in the exact order of insertion
-- 
Posted via http://www.ruby-forum.com/.