From: Chad Perrin Date: 2006-08-14T08:12:30+09:00 Subject: Re: hash.keys and hash.values On Mon, Aug 14, 2006 at 07:31:05AM +0900, Hal Fulton wrote: > > They'll certainly be the same order. It would be crazy otherwise. Not necessarily. It could be that, when calling on them separately, they are accessed in a different order -- and only when using one to reference the other do their associations come to light. It's conceivable where there might come a time when someone decides, for implementation reasons, that this might be a better way to handle it. It's still less surprising for them to be accessed in the same order, though, so it's nice that it's implemented this way in absence of a compelling reason to do otherwise. > > This perhaps should be mentioned somewhere, but maybe people > take it for granted. I suspect people don't even get as far as taking it for granted, since they probably tend to access one from the other in almost all cases. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The first rule of magic is simple. Don't waste your time waving your hands and hopping when a rock or a club will do." - McCloctnick the Lucid