Guys,

I was wondering whether anyone experimented with Rcpp and static variables. I 
remember reading that Rcpp is essentially stateless. That makes sense. However 
I just run a piece of code that contains a static STL structure, surprisingly  
it seems that those static variables are preserved...

The question is, can we use static variable to reliably preserve state between 
Rcpp calls?

Cheers,

//Giuseppe

________________________________
---- MAKO ----
This email and any files transmitted with it are confide...{{dropped:17}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to