Skip to content
Prev 656 / 10988 Next

[Rcpp-devel] Rf_error and Rcpp

Le 04/05/10 18:24, Dirk Eddelbuettel a ?crit :
Sure. What we need to do is check R api calls, things like STRING_ELT 
might call error if the object is not a STRSXP and this would invalidate 
C++ stack (in theory ...)

One thing the old api does not do is throw declarations and we've 
noticed that this sometimes makes a difference when using dynamic 
linking, although the old api only used standard exception classes 
(range_error, etc ...) and not custom classes, so maybe that makes a 
difference.