From: matz@... (Yukihiro Matsumoto) Date: 2000-03-29T22:32:19+09:00 Subject: [ruby-talk:02245] Re: *DBM#invert Hi, In message "[ruby-talk:02214] *DBM#invert" on 00/03/28, Clemens Hintze writes: |There seems really to be a bug! DBM#invert will build a hash during |execution that contains all values as keys and the keys as |values. That means your demo 'mdb.each { ... }' should return: | |1--a |2--b | |But the bug seems to be that DBM#invert returns the DBM instance |itself instead of the new-created hash! So in your example DBM#each is |called instead of Hash#each. | |The same is true for GDBM! Oops, thank you for the patches.