From: Mark Probert Date: 2002-10-09T00:11:37+09:00 Subject: Re: Clearing arrays etc. in extensions At 10:27 PM 10/8/2002 +0900, Nobu wrote: >At Tue, 8 Oct 2002 22:16:28 +0900, >Mark Probert wrote: > > 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 ;-)? > >Even if the arr is an instance of a subclass of Array which >overrides "clear" method, rb_ary_clear() always invokes the >original behavior. It may be expected behavior or not. Thanks for the info. Regards, -mark.