[#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:01084] Infinite loop

From: Dave Thomas <Dave@...>
Date: 2000-01-11 00:30:20 UTC
List: ruby-talk #1084

I don't know if this is a bug or expected behavior - I could argue it
either way, but..

   ruby> a = [1, 2, 3]
   [1, 2, 3]
   ruby> a[1] = a
   [1, [...], 3]
   ruby> { a => 1 }

loops.


Regards

Dave

In This Thread

Prev Next