[Rcpp-devel] Call by reference
Dirk Eddelbuettel
edd at debian.org
Thu Jul 30 00:11:53 CEST 2015
On 29 July 2015 at 14:21, Nathan Kurz wrote:
| > On 29 July 2015 at 15:12, Dirk Eddelbuettel wrote:
| > All this is becoming a wee bit obscure. The focus of the list is to help
| > people use Rcpp, not to navigate constraints built into the R system.
|
| <genuine>
| Yes, but for many users (well, at least RGuy and me) the impetus for
| using Rcpp is to to improve performance on larger datasets. Since R
| is relatively weak in memory management, avoiding large unnecessary
| copies by using Rcpp is frequently the best way to do this.
| </genuine>
I know. But then it is best to put cards on the table at the outset -- and
hear about XPtr -- then to putz around with adding & or not. This isn;t pure
C++. We interface R through a C interface that was defined a long time ago
and is pure C.
| <joking>
| Really, your misfortune was creating such a generally useful tool that
| solves other people's problems. If you'd thought ahead and designed
| it to be less flexible, you wouldn't have people asking all these
| uncomfortable questions about how to modify in place.
| </joking>
I know that too and suffer^Henjoy it daily :)
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list