> As I said earlier, this construction guarantees that the storage is > not copied. An Rcpp::NumericVector also uses the storage from R but > it can be difficult to determine exactly when a copy constructor, > which actually allocates new storage for an SEXPREC, is invoked.
But that's half the fun of programming in R! ;) Thanks for the other explanations. Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel