Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Davor Cubranic
On 2010-03-23, at 12:03 PM, Dirk Eddelbuettel wrote: > On 23 March 2010 at 13:36, Douglas Bates wrote: > | I have C++ mode in emacs configured so that certain keystrokes indent > | lines and, for me, the indentation step is four. I believe that > | multiple indents are expressed as tabs but I'm n

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Dirk Eddelbuettel
On 23 March 2010 at 19:29, Romain Francois wrote: | For future reference, I don't mind if you reindent the code to suit | emacs, I'm used to Dirk doing it. | | Does that mean I should use "soft tabs" (emulated with spaces) ? I got quite used to just specififying in the header: // -*- mode:

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Douglas Bates
On Tue, Mar 23, 2010 at 1:29 PM, Romain Francois wrote: > Le 23/03/10 16:04, Douglas Bates a écrit : >> >> On Tue, Mar 23, 2010 at 8:31 AM, Dirk Eddelbuettel  wrote: >>> >>> On 23 March 2010 at 13:16, Romain Francois wrote: >>> | Le 23/03/10 12:49, Dirk Eddelbuettel a écrit : >>> |> >>> |>  FYI, f

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Romain Francois
Le 23/03/10 16:04, Douglas Bates a écrit : > > On Tue, Mar 23, 2010 at 8:31 AM, Dirk Eddelbuettel wrote: >> >> On 23 March 2010 at 13:16, Romain Francois wrote: >> | Le 23/03/10 12:49, Dirk Eddelbuettel a écrit : >> |> >> |> FYI, following Doug's lead re '-pedantic', I made that permanent for me

[Rcpp-devel] experimental c++ stack trace

2010-03-23 Thread Romain Francois
Hello, I've commited some experimental mechanism based on this blog post :http://tombarta.wordpress.com/2008/08/01/c-stack-traces-with-gcc/ This uses the backtrace_symbols function (see http://www.gnu.org/s/libc/manual/html_node/Backtraces.html) to grab a stack trace. The main entry point is

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Dirk Eddelbuettel
On 23 March 2010 at 10:04, Douglas Bates wrote: | On Tue, Mar 23, 2010 at 8:31 AM, Dirk Eddelbuettel wrote: | > On 23 March 2010 at 13:16, Romain Francois wrote: | > | Le 23/03/10 12:49, Dirk Eddelbuettel a écrit : | > | This one, I'm not sure. Any ideas ? | > | > #ifdef protect your DEBUG macro

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Douglas Bates
On Tue, Mar 23, 2010 at 8:31 AM, Dirk Eddelbuettel wrote: > > On 23 March 2010 at 13:16, Romain Francois wrote: > | Le 23/03/10 12:49, Dirk Eddelbuettel a écrit : > | > > | > FYI, following Doug's lead re '-pedantic', I made that permanent for me > via > | > > | >     e...@ron:~$ grep pedantic .R

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Dirk Eddelbuettel
On 23 March 2010 at 12:48, Romain Francois wrote: | > Nice one! Good work. | | I have not yet added regression tests for it. volunteers ? rev 939 has one which I just wrote on the short train ride. Dirk -- Registration is open for the 2nd International conference R / Finance 2010 See http

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Dirk Eddelbuettel
On 23 March 2010 at 13:16, Romain Francois wrote: | Le 23/03/10 12:49, Dirk Eddelbuettel a écrit : | > | > FYI, following Doug's lead re '-pedantic', I made that permanent for me via | > | > e...@ron:~$ grep pedantic .R/* | > .R/Makevars:CFLAGS=-g -O3 -Wall -pipe -pedantic | > .R/Makev

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Romain Francois
Le 23/03/10 12:49, Dirk Eddelbuettel a écrit : > > FYI, following Doug's lead re '-pedantic', I made that permanent for me via > > e...@ron:~$ grep pedantic .R/* > .R/Makevars:CFLAGS=-g -O3 -Wall -pipe -pedantic > .R/Makevars:CXXFLAGS=-g -O3 -Wall -pipe -pedantic > > which now reveals a

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Dirk Eddelbuettel
FYI, following Doug's lead re '-pedantic', I made that permanent for me via e...@ron:~$ grep pedantic .R/* .R/Makevars:CFLAGS=-g -O3 -Wall -pipe -pedantic .R/Makevars:CXXFLAGS=-g -O3 -Wall -pipe -pedantic which now reveals a lot of ./RcppCommon.h:205:28: warning: anonymous variadic

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Romain Francois
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 >

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Dirk Eddelbuettel
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

[Rcpp-devel] bug hunting

2010-03-23 Thread Romain Francois
Hello, 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 str