[Rcpp-devel] Idiom for accessing scalars
Dirk Eddelbuettel
edd at debian.org
Fri Jan 6 21:14:58 CET 2012
On 6 January 2012 at 13:46, Douglas Bates wrote:
| I didn't make myself clear. What I meant was that it is not possible
| to use asInteger in Rcpp and count on the name being remapped to
| Rf_asInteger.
Right. I had to enforce that a long time ago because the non-prefixed
variants too often clash with things commonly used in other places. One
example was length(), and I think I even had issues with error().
Hence the use of the remap toggle and the need for ugliness via Rf_*.
Dirk
--
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx
More information about the Rcpp-devel
mailing list