>>>>> "C" == Chris Uzdavinis <chris / atdesk.com> writes:

C> But I prefer using an accessor function.  Maybe the ruby code should
C> make this a visible function and remove the static linkage. 

 There are not exactly the same, rb_ary_length() is

  INT2NUM(RARRAY(ary)->len) 

 and it's used for the method #length

C> (Anyone have any comments on that?)

 In README.EXT you have

   For example, `RSTRING(size)->len' is the way to get the size of the
   Ruby String object.  The allocated region can be accessed by
   `RSTRING(str)->ptr'.  For arrays, `RARRAY(ary)->len' and
   `RARRAY(ary)->ptr' respectively.


Guy Decoux