<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dispatching could also happen in attributes. Why not having something like this:<br>
<br>
// [[Rcpp::export]]<br>
void foo( NumericVector x) {<br>
    // do some stuff<br>
}<br>
<br>
// [[Rcpp::export]]<br>
void foo( IntegerVector x) {<br>
    // do some other stuff<br>
}<br>
<br>
This would involve some work in the way attributes work. But I can defintely see the value of this. Comments. JJ ?<br></blockquote><div><br></div><div>Yes, agreed, this would be really cool! I don't think it's in principle difficult to do.</div>
<div><br></div></div>