From: Tim Hunter Date: 2002-10-08T07:32:59+09:00 Subject: Re: Clearing arrays etc. in extensions What are you wanting to do? Make the array have 0 elements? You could use rb_funcall to call the clear method on the array, or simply set the len field to 0. Clearing a hash is less simple, so calling the clear method seems best to me. On Tue, 08 Oct 2002 05:54:30 +0900, Mark Probert wrote: > > Hi, > > How do I clear the contents of an array or hash in > an extension? Setting the pointer to nil just doesn't > seem to be right... >