> > 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.
_______________________________________________ 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