Women in Technology

Hear us Roar



Article:
  Extending Ruby with C
Subject:   well said
Date:   2004-11-19 09:58:02
From:   amuegge
I was checking this out this week as well, you've written an excellent explanation. I think it's worth noting too that SWIG (link) does ruby output, and can handle a lot of the wrapper code generation.


thanks again!
a.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • re: well said
    2004-11-20 02:26:52  bitserf [View]

    i'm not entirely convinced SWIG works well for generating OO wrappers around C code, C++, sure.

    i couldn't get it to treat an opaque pointer to a C struct as the class instance and attach arbitrary instance methods (as you can when you use Data_Wrap_Struct directly), but that may just be user error on my part..