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
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 :