From: nobu.nokada@... Date: 2002-10-08T22:27:17+09:00 Subject: Re: Clearing arrays etc. in extensions Hi, 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. -- Nobu Nakada