Displaying 1 result from an estimated 1 matches for "worldn".
Did you mean:
world
2008 Feb 02
1
Ruby++ FFI (theoretical)
...stance Methods
VALUE method_a();
VALUE method_b(VALUE);
// Singleton Methods
static VALUE method_c(VALUE);
};
// foo.cpp - Implementation
#include <iostream>
#include <foo.h>
using namespace ruby;
/* Constructor */
Foo::Foo(){
cout << "Hello Worldn";
}
/* Or maybe we setup some sort of default Object destructor instead
* of making people do it explicitly, unless they have special
requirements.
*/
Foo::~Foo(){
delete this;
}
VALUE Foo::method_a(){
return ruby_int(27);
}
VALUE Foo::method_b(VALUE av_name){
return "...