From: Charles Comstock Date: 2008-12-28T13:46:19+09:00 Subject: [ruby-core:20927] [Bug #937] Recursive Hashes As Keys Bug #937: Recursive Hashes As Keys http://redmine.ruby-lang.org/issues/show/937 Author: Charles Comstock Status: Open, Priority: Low Target version: Ruby 1.8.7 On 1.8.7 hashes which use themselves as keys appear to lack a meaningful value, yet are stored correctly in the keys and values list. $ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] $ ruby -e 'h = {}; h[h] = h; p h,h[h],h.keys[0],h.values[0]' {{...}=>{...}} nil {{...}=>{...}} {{...}=>{...}} Is this intended behavior or a bug? ---------------------------------------- http://redmine.ruby-lang.org