From: "Mauricio Fernández" Date: 2003-04-10T17:00:00+09:00 Subject: Re: tutorial on embedding ruby (review) On Thu, Apr 10, 2003 at 11:42:27AM +0900, Steve Hart wrote: > what happend if the GC runs between objects = rb_ary_new() and > rb_gc_register_address(&objects); ? Or can this never happen. It could happen but Ruby's GC is conservative, which means that it will scan the stack (where the variable objects lives) to find references to objects. matz took care of it for you :-) -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Never trust an operating system you don't have sources for. ;-) -- Unknown source