Message-ID: <48403.1362720111@greg-minshalls-mbp.local>
Date: 2013-03-08T05:21:51Z
From: Greg Minshall
Subject: [Rcpp-devel] constructors taking the same number of arguments
In-Reply-To: Your message of "Thu\, 07 Mar 2013 21\:40\:35 -0600." <20793.23987.730204.75316@max.nulle.part>
hi. the Rcpp-modules document, section 2.2.2, mentions that one can
write a routine to disambiguate between different constructors taking
the same number of arguments.
i wonder, in the case one has *not* provided such a disambiguator, would
it be possible to offer up an error message, maybe at compile time?
(and point the programmer at the relevant document.)
attached is a test case which compiles, but gets a runtime error it
took me a bit of head scratching, compiling Rcpp with debug symbols so i
could follow the action, etc.
(in *this* case, the specific error message is: "Error: not an S4
object".)
cheers, Greg
----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test5.cc
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130307/a3af11c7/attachment.ksh>