[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02245] Re: *DBM#invert

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-29 13:32:19 UTC
List: ruby-talk #2245
Hi,

In message "[ruby-talk:02214] *DBM#invert"
    on 00/03/28, Clemens Hintze <c.hintze@gmx.net> 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.

In This Thread

Prev Next