I some structs that are (conceptually) like this:

  typedef struct {int a, b, c;} s1;
  typedef struct {int d, e, f; s1 g;} s2;

I'm trying to use Ruby/DL to declare and access the struct s2 from Ruby, but
can't figure out how. I'd like to be able to use it like this:

  s = S2::new(ptr)
  p s.a
  p s.g.a

I have no trouble declaring and using a simple struct (like s1), it's only
nested structs that are causing me to scratch my head.

Any help would be appreciated,


Nathaniel

<:((><