Re: [Rcpp-devel] is( SEXP )

2013-07-17 Thread Romain Francois
Le 17 juil. 2013 à 14:10, JJ Allaire a écrit : >> But maybe it is not worth the trouble. Maybe this is simply a documentation >> issue on hiw to dispatch. > > Yes, I think creating an automatic dispatch system that's general enough to > matter might not be worth the effort. Documentation + so

Re: [Rcpp-devel] is( SEXP )

2013-07-17 Thread JJ Allaire
> > But maybe it is not worth the trouble. Maybe this is simply a > documentation issue on hiw to dispatch. > Yes, I think creating an automatic dispatch system that's general enough to matter might not be worth the effort. Documentation + some supporting utilities is probably the optimal path. __

Re: [Rcpp-devel] is( SEXP )

2013-07-17 Thread Romain Francois
Le 17 juil. 2013 à 13:41, JJ Allaire a écrit : >> dispatching could also happen in attributes. Why not having something like >> this: >> >> // [[Rcpp::export]] >> void foo( NumericVector x) { >> // do some stuff >> } >> >> // [[Rcpp::export]] >> void foo( IntegerVector x) { >> // do so

Re: [Rcpp-devel] is( SEXP )

2013-07-17 Thread JJ Allaire
> > dispatching could also happen in attributes. Why not having something like > this: > > // [[Rcpp::export]] > void foo( NumericVector x) { > // do some stuff > } > > // [[Rcpp::export]] > void foo( IntegerVector x) { > // do some other stuff > } > > This would involve some work in the wa