M
Mark Probert
Hi ..
What is the easy way of clearing an array in an extension?
ie Given
VALUE t_init(VALUE self)
{
VALUE foo;
foo = rb_ary_new();
rb_iv_set(self, "@foo", foo);
}
How do I do the equivalent of "foo.clear" ?
Thanks,
What is the easy way of clearing an array in an extension?
ie Given
VALUE t_init(VALUE self)
{
VALUE foo;
foo = rb_ary_new();
rb_iv_set(self, "@foo", foo);
}
How do I do the equivalent of "foo.clear" ?
Thanks,