ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Extending Ruby with C
Subject:   re: well said
Date:   2004-11-20 02:26:52
From:   bitserf
Response to: well said

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..