[Rcpp-devel] [ANN] RInside 0.2.9

Dirk Eddelbuettel edd at debian.org
Wed Nov 7 03:12:34 CET 2012


On 7 November 2012 at 10:16, Darren Cook wrote:
| > nice to see how RInside gets even better. I saw the example of the
| > "R.parseEvalQNT(cmd)". I have a question. Is it supposed to work if
| > the cmd command it's correct but throws an exception (for example the
| > routine crashes because has some NA data)?.
| > 
| > If you have code that can throw you cannot use the no-throw variant
| > as you would end up with undefined behaviour.
| 
| Hello Dirk,
| Where would you choose to use parseEvalQNT() instead of parseEvalQ()?

Please see examples/standard/rinside_sample14.cpp for one example. If you use
the throwing variant, you "jump".
 
| (I.e. even if you were 100% sure your code would never throw, does
| parseEvalQ() have a downside?)

Well "it depends" as it always does. 

So I provide an API with different options.  You get to pick.

Hth, Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list