From: William Djaja Tjokroaminata Date: 2002-10-23T00:17:09+09:00 Subject: Re: rb_gc_register_address problem Well, as long as after each new object creation we call rb_gc_register_address() (and optionally call rb_gc_unregister_address()), this is fine: a = Qnil; rb_gc_register_address(a); rb_gc_unregister_address(a); /* optional */ a = rb_ary_new(); rb_gc_register_address(a); Of course, we are here assuming rb_gc_register_address(VALUE) instead of rb_gc_register_address(VALUE*) and Matz has to do the O(N**2) process in rb_gc(). Bill =========================================================================== ts wrote: > a = Qnil; > rb_gc_register_address(a); > a = rb_ary_new(); > Guy Decoux