From: Gaspard Bucher Date: 2007-10-11T04:02:18+09:00 Subject: Re: retain VALUE from C extension Yes, I think this is what I was looking for. As I understand, this "declares" the address as needing "global marking" by adding it to global_List. /* mark protected global variables */ for (list = global_List; list; list = list->next) { rb_gc_mark_maybe(*list->varptr); } > > I'm not sure what you mean by 'increment' or 'retain', but > rb_global_variable() may be the answer. See README.EXT. > > matz. > Effectivelly, "retain" (objective-C terminology) is not appropriate. From what I understand the mark & sweep garbage collecting process is quite different from the reference counting strategy I was familiar with. Thanks for the information. Gaspard