From: David Flanagan Date: 2007-09-07T07:20:34+09:00 Subject: Re: New array methods cycle, choice, shuffle (plus bug in cycle) This a a better patch than the one I included in the parent message. Sorry! David --- array.c.orig 2007-09-06 15:00:02.000000000 -0700 +++ array.c 2007-09-06 15:18:58.000000000 -0700 @@ -2939,7 +2939,7 @@ long i; RETURN_ENUMERATOR(ary, 0, 0); - for (;;) { + while(RARRAY_LEN(ary)) { for (i=0; i