From: Tom Gilbert Date: 2002-07-23T21:45:04+09:00 Subject: Re: bdb and $= * ts (decoux@moulon.inra.fr) wrote: > >>>>> "T" == Tom Gilbert writes: > > T> Is this a bug? > > You can call it a bug but see [ruby-talk:36573] and [ruby-talk:36856] > > http://www.ruby-talk.org/36573 > http://www.ruby-talk.org/36856 $= is obselete? Damn, that's news to me. Now, I can wrap the Hash, but I have to point out that the lack of $= sucks. My has_key? implementation will have to iterate over every key in the Hash, and compare using tolower. This is slow as poop, plus a lot of these kind of modules (don't know about bdb explicitly) may have access to some nice efficient way of doing case insensitive comparisons (a flag to toggle use of strcasecmp() or whatever), and without $= I can't access it :( What's the point of a Hash interface when I have to iterate over every key for each lookup? :( Tom. -- .^. .-------------------------------------------------------. /V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk | /( )\ | Open Source/UNIX consultant | tom@linuxbrit.co.uk | ^^-^^ `-------------------------------------------------------'