Re: [Rcpp-devel] Rcpp modules : help with the design

2010-06-04 Thread Romain Francois
Le 31/05/10 20:07, Romain Francois a écrit : Thanks John, Le 31/05/10 18:23, John Chambers a écrit : Just a couple of comments. 1. class names One result of creating an S4 class with the same name as the C++ class is that you may be hiding another S4 class of that name. Always possible in any

[Rcpp-devel] C++ class data members exposed as properties

2010-06-04 Thread Romain Francois
Hello, I've added support for properties in classes that are exposed by Rcpp modules. Here is a full example that works with inline 0.3.5 and the svn version of Rcpp: inc <- ' class Num{ public: Num() : x(0.0), y(0){} ; double getX()