Hi Matz,

For the next stable release of Ruby (with shift() fixed), will these two C
calls still be valid:

    len = (long) RARRAY (someArray)->len;
    obj = rb_ary_entry (someArray, i);

Regards,

Bill
============================================================================
Yukihiro Matsumoto <matz / ruby-lang.org> wrote:
> Hi,

> In message "Is Ruby Array#shift/unshift Efficient?"
>     on 02/09/17, William Djaja Tjokroaminata <billtj / y.glue.umd.edu> writes:

> |I just scanned the Ruby array implementation in array.c, and to my
> |surprise, every time Array#shift/unshift is called, memmove() is
> |invoked.

> "shift" is fixed in 1.7.

> 							matz.