Agree about macros.
Sent from my iPad
> On Aug 28, 2016, at 9:58 AM, Dirk Eddelbuettel wrote:
>
>
> Fatima,
>
> Oh, and just to clarify: Macros are still possible. In fact, if you study
> the Rcpp source code you will find _extensive_ use of them. But as a matter
> of programming style I w
Fatima,
Oh, and just to clarify: Macros are still possible. In fact, if you study
the Rcpp source code you will find _extensive_ use of them. But as a matter
of programming style I would recommend avoiding them in top-level user-facing
code.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbue
Fatima,
You are writing very much like a C programmer. While C and C++ pretty much
get along, we have conflicts here over the macro use --- we make extensive
use of templates, and the cost of that is that some structures (which may be
valid, but really are no longer recommended style) conflict.
Hi all,
Want to ask two basic things. I have a pointer in a macro. How should I
call it in R? Also, in my fun I have a for loop involving pointers to
address of object. I am not sure can I simply put NumericVector here or
there is some other things to take care of? Below is the code.
#include