hi,
look at http://whytheluckystiff.net/ruby/pickaxe/

There' re some issues to think about when you use structs and variables in
Ruby and C.

I don' t have the time to get deeper at the moment. Perhaps later.

regards,
Alex.