[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01091] Re: Infinite loop

From: Yasushi Shoji <yashi@...>
Date: 2000-01-11 08:46:04 UTC
List: ruby-talk #1091
From: Dave Thomas <Dave@thomases.com>
Subject: [ruby-talk:01089] Re: Infinite loop
Date: 11 Jan 2000 02:18:48 -0600

> Thanks. I understand the above, though. I was interested that the
> interpreter looped when 'a' is used as a hash key, but:

oops, sorry I mis-read you post ;p and thanks Clemens for pointing
out.

I guess I should wait for Matz or somebody else who knows the internal
of the Ruby.

$ ruby -e "a=[1,2,3];a[1]=a; p a.hash"
/tmp/rbOT3nrs:1:in `hash': stack level too deep (SystemStackError)
--
         yashi

In This Thread