From: Kenneth McDonald Date: 2006-10-13T13:26:58+09:00 Subject: Re: Any way to get lists to throw exceptions on incorrect accesses? Yep, got that one. Unfortunately, there's no equivalent for lists. Actually, I'm going to make another post on this in the next few minutes. > Set the default proc to raise an exception... > > a=Hash.new {raise ArgumentError} > a[1] #=> raises an ArgumentError > > _Kevin > > > >