M
Mark Hubbart
Hi,
I was messing around with recursive arrays and I came across this:
mark@imac% cat hash.rb
a = []
a[0] = a
puts a.hash
mark@imac% ruby -v hash.rb
ruby 1.9.0 (2004-04-11) [powerpc-darwin]
hash.rb:3:in `hash': stack level too deep (SystemStackError)
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
... 44888 levels...
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3
... looks like a bug?
cheers,
--Mark
I was messing around with recursive arrays and I came across this:
mark@imac% cat hash.rb
a = []
a[0] = a
puts a.hash
mark@imac% ruby -v hash.rb
ruby 1.9.0 (2004-04-11) [powerpc-darwin]
hash.rb:3:in `hash': stack level too deep (SystemStackError)
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
... 44888 levels...
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3:in `hash'
from hash.rb:3
... looks like a bug?
cheers,
--Mark