Hi,

Am Dienstag, 04. Aug 2009, 08:40:06 +0900 schrieb bbiker:
> On Aug 3, 4:38  𮮮
> > On Mon, Aug 3, 2009 at 5:17 PM, Bertram Scharpf<li... / bertram-scharpf.de> wrote:
> > > Am Montag, 03. Aug 2009, 09:11:11 +0900 schrieb Bertram Scharpf:
> > > Sorry! The least surprise of course would be
> >
> > >  ۳  ۳> 
> a = [1.2.3.4,5]
> 
> a[3,-3]  =>    # there is no such thing  -3 elements  therefore it
> returns nil

That's the way it is. I wrote that my suggestion is a matter of
taste and it's no more. The most weird thing would be to change
the language's definition and the common sense.

Anyway, it is still my opinion that there should be methods
Array#notempty?, Hash.notempty? and String.notempty? analogous to
Numeric#nonzero?. Expect me to repeat it soon.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de