On Wednesday, 13 November 2002 at  2:29:38 +0900, Paul Brannan wrote:
> h = {
>   'foo' => 'abc',
>   'foo' => 'xyz',
>   'foo' => 42
> }
> p h
> 

I suppose ruby can distinguish the difference between the above and:

 h = { 'foo' => 'abc'}
 h = { 'foo' => 'xyz'}
 h = { 'foo' => 42}

or

 h = {}
 h['foo'] = 'abc'
 h['foo'] = 'xyz'
 h['foo'] = 42


The latter two should not return a warning, but I can imagine
where it would be nice for the first to.

-- 
Jim Freeze
----------
Indifference will be the downfall of mankind, but who cares?