David A. Black wrote:
> On Tue, 2 Oct 2007, 7stud -- wrote:
> 
>> 7stud -- wrote:
>>> SpringFlowers AutumnMoon wrote:
>>>>
>>>> why is that?
>>
>> Or even simpler:
>>
>> a = Array(1..6)
>>
>> a[puts "hello"] = a[puts "world"] = nil
> 
> puts returns nil, and you can't index an array with nil.
> 
> 

Yes, I know, but that isn't the point of the example.   The output 
provides the answer to the question.
-- 
Posted via http://www.ruby-forum.com/.