[Rcpp-devel] Rcpp constructor validator help

Dirk Eddelbuettel edd at debian.org
Mon Nov 7 15:48:08 CET 2016


On 7 November 2016 at 09:27, Anon User wrote:
| By “Constructor Validator”, I was referring to the validator function pointer used to "implement dispatch to the appropriate constructor when multiple constructors taking the same number of arguments are exposed," as mentioned in your book “Seamless R and C++ integration with Rcpp” (page 92) 

Touchee :)

| The class constructors in question take either two ints, or an int plus an object of class Foo, which has been property converted via as<>() and wrap().

If you are in a C++ context, general C++ rules should apply as usual.

We get into some C language constrainst for code we expose back as
_everything_ has to (eventually) go through `SEXP .Call("somefunc", SEXP, ...)

Complete reproducible examples help.

Dirk

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


More information about the Rcpp-devel mailing list