[Rcpp-devel] RObject.asFoo

Dirk Eddelbuettel edd at debian.org
Sat Feb 6 15:22:01 CET 2010


On 6 February 2010 at 15:08, Romain Francois wrote:
| On 02/06/2010 02:58 PM, Dirk Eddelbuettel wrote:
| >
| >
| > On 6 February 2010 at 14:28, Romain Francois wrote:
| > | Hello,
| > |
| > | Now with as<Foo>, we don't need anymore the Rcpp::asFoo() methods. I'd
| > | like to remove them from the api.
| > |
| > | Any objections ?
| >
| > Could we keep them as one-liners a la
| >
| >        inline bool asBool() const { return as<bool>(object); }
| >
| > and mark it in RcppSexp.h with a comment that the asFoo are deprecated?
| >
| > Dirk
| >
| 
| Sure. I do not mind keeping them in RcppSexp, but I'd prefer top 
| eventually remove them from RObject, but we can do it slowly, deprecate 
| them first, etc ...

Ahh, yes.
 
| I'm changing RcppSexp so that it uses as<> directly.

That's good. 

In a sense even RcppSexp is deprecated and replace by Rcpp::RObject.

Dirk


-- 
  Registration is open for the 2nd International conference R / Finance 2010
  See http://www.RinFinance.com for details, and see you in Chicago in April!


More information about the Rcpp-devel mailing list