From: Elias Athanasopoulos Date: 2003-11-23T17:44:39+09:00 Subject: Ruby - C++ extension Hello! I am trying to create a new Ruby extension, which eventually will give to Ruby the functionality of a C++ project. So far, the extension is going fine. However I have two issues: (1) C++ Type Casting (2) Multiple Inheritance Is there a generic approach to solve the above? As far as C++ Type Casting is concerned I am thinking of creating to_xxx methods. I.e. foo = (Foo *) Bar->dump(); will be in Ruby: foo = Bar.dump.as_Foo As far as Multiple Inheritence is concerned, I think the only way to go through is to define modules and include them in other modules. Howver the C++ project I'm trying to create Ruby Bindings for, has a very complex inheritence tree. Is there any other workaround? Regards, -- University of Athens I bet the human brain Physics Department is a kludge --Marvin Minsky