Re: [Rcpp-devel] modules feature added (rev 3814)

2012-10-23 Thread Romain Francois
I continued this, and now we can also expose free functions returning pointers. For example: Foo* make_foo(){ return new Foo(3, 4) ; } See svn version of RcppBDT for a real example. Romain Le 23/10/12 15:55, Romain Francois a écrit : Hello, I've added the possibility for exposed classes to

[Rcpp-devel] modules feature added (rev 3814)

2012-10-23 Thread Romain Francois
Hello, I've added the possibility for exposed classes to expose a method that returns a pointer of the class. That is not easy to explain in a sentence, here is an example code: class Foo{ public: Foo( double x_, double y_) : x(x_), y(y_){} Foo* clone(){