Re: [Rcpp-devel] anyone familiar with the do_dotcode

2010-03-24 Thread Romain Francois
I'm in the land of second guessing here, but I think the "slicing" occurs because of this typedef: #ifdef __cplusplus typedef SEXP (*VarFun)(...); #else typedef DL_FUNC VarFun; #endif so foo is seen as a VarFun. I don't think what I want is possible... Le 24/03/10 15:22, Romain Francois a écri

[Rcpp-devel] anyone familiar with the do_dotcode

2010-03-24 Thread Romain Francois
Hello, I'd like to be able to simply define functions like this : SEXP foo( IntegerVector x ){ // .. do something with x } instead of this: SEXP foo( SEXP x){ IntegerVector xx(x) ; } and there is something in do_dotcode (I don't know what) that prevents this. With this file :