From: Mark Probert Date: 2002-10-08T22:16:28+09:00 Subject: Re: Clearing arrays etc. in extensions At 08:53 PM 10/8/2002 +0900, kjana@dm4lab.to wrote: >That's what done in rb_ary_clear(), implementing Array#clear and >is exported for C extension in intern.h :-) Thank you so much! I knew that there was a simple answer in there some where. As a general question, using rb_ary_clear(arr) seems clearer than rb_funcall(arr, rb_intern("clear"), 0). Is there any downside (besides the fact that it is "undocumented" and buried in intern.h ;-)? -mark.