From: Martin DeMello Date: 2005-12-13T18:57:38+09:00 Subject: Re: Accessing C structures in Ruby Eero Saynatkari wrote: > > Yep, that looks fine to me. There are certainly other ways but aside > from some repetitiveness, this is easy and versatile (particularly if > you need to pass data to C libraries as well). If you have lots and > lots of functions like that, you could even do with a little #define. http://redshift.sourceforge.net/cgen/ might be helpful (not used it myself, but this seems like a prime use case) martin