[Rcpp-devel] bug hunting

Romain Francois romain at r-enthusiasts.com
Tue Mar 23 12:48:12 CET 2010


Le 23/03/10 12:34, Dirk Eddelbuettel a écrit :
>
> On 23 March 2010 at 11:14, Romain Francois wrote:
> | I think the bug reported by Doug in the "Extract a function from a list
> | and create a call" thread is now fixed.
> |
> | The problem was Vector did not have copy constructor and assignement
> | operators, so the compiler did generate silly ones for us. Do the vector
> | cache was not updated, so the string_proxy was holding an innapropriate
> | VECTOR*.
>
> Nice one! Good work.

I have not yet added regression tests for it. volunteers ?

> | Please let me know if this works now.
> |
> | In this debuggin battle, I defined the macro RCPP_DEBUG which is similar
> | to logTxt but allows printf formatting on the text and also the DEMANGLE
> | macro that demangles a c++ class name.
>
> Very useful, and hadn't come across it. Where did you find that?

DEMANGLE I've juste factored out of the exceptions.cpp, for the printf 
trick, I've used http://en.wikipedia.org/wiki/C_preprocessor

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7
`- http://tr.im/O1wO : highlight 0.1-5



More information about the Rcpp-devel mailing list