[Rcpp-devel] is<T>( SEXP )

JJ Allaire jj.allaire at gmail.com
Wed Jul 17 13:41:45 CEST 2013


>
> 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 way attributes work. But I can
> defintely see the value of this. Comments. JJ ?
>

Yes, agreed, this would be really cool! I don't think it's in principle
difficult to do.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130717/334e196b/attachment.html>


More information about the Rcpp-devel mailing list