Robert Buck wrote in post #1086213:

> struct hierarchical_handle
> {
.......
>     // used to pin parents in memory via rb_gc_mark
>     VALUE parent;
> };

Hi,

Just a little comment here.  If I have to to traverse a graph of
objects, I will use something similar to "VALUE* children" instead of
"VALUE parent" for rb_gc_mark (and it is more true for the free function
pointers).

Regards,

Bill

-- 
Posted via http://www.ruby-forum.com/.