Ask a Question related to Ruby, Design and Development.
-
Elias Athanasopoulos #1
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
Elias Athanasopoulos Guest
-
Any Extension for Ruby On Rails on DW
Hello, I am planning to quit PHP and start developing in Ruby on Rails. Their MVC model is really great and plus MS has also appreciated this... -
Ruby Extension/DLL Help
Hi, Recently i started writing a Ruby extension. This Extension is providing access to a dll-library. It has been written in c. Compiling works... -
Two problems creating a C++ extension to Ruby
Hello, I'm having some trouble with my first C++ extension for Ruby. The extension is a wrapper for the id3lib library providing my own interface... -
Exception handling in ruby extension
Quick question, How do you handle exceptions in a ruby extension? I see rb_rescue, but it don't see how I get at the exception object in func2. ... -
warning in ruby extension eats memory
I've written extension in C for ruby and created test case for it. When I've run it ruby eat all memory. I've simplified code as I can and here is... -
Jim Freeze #2
Re: Ruby - C++ extension
On Sunday, 23 November 2003 at 17:44:39 +0900, Elias Athanasopoulos wrote:
I haven't checked the specifics, but have you read Lyle's talk> 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
from the 2002 Rubyconf?
[url]http://www.zenspider.com/Languages/Ruby/RubyConf2002/[/url]
--
Jim Freeze
----------
Klein bottle for sale ... inquire within.
Jim Freeze Guest



Reply With Quote

