Good idea -- some of the fixes could be suggested that way -- for example minor typos like this (semicolon in first define_method)
extern "C"
void Init_Test()
{
Class rb_cTest =
define_class("Test")
.define_method("initialize", test_initialize);
.define_method("hello", test_hello);
}
But my overall recommendation is to go over the examples and make sure they run since most are snippets.
More importantly, I would like to see some more simple examples with richer data types. For example, I've got one C++ method that I wrote that takes Rice::Array as an argument and returns one as well.
But, I don't know if there's any way to do that with std containers -- most of my attempts didn't work. At this point I'm not sure it's possible so an example showing a to_ruby from_ruby conversion or a small example.
My reason for mentioning it is that I think the project could be highly valuable and anything you can do to improve adoption rate is worth your time.
Thanks,
Gordon
|