[Rcpp-commits] r919 - in pkg/Rcpp: . inst

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Mar 19 16:57:10 CET 2010


Author: romain
Date: 2010-03-19 16:57:10 +0100 (Fri, 19 Mar 2010)
New Revision: 919

Modified:
   pkg/Rcpp/NEWS
   pkg/Rcpp/inst/ChangeLog
Log:
log changes

Modified: pkg/Rcpp/NEWS
===================================================================
--- pkg/Rcpp/NEWS	2010-03-19 15:31:39 UTC (rev 918)
+++ pkg/Rcpp/NEWS	2010-03-19 15:57:10 UTC (rev 919)
@@ -3,10 +3,10 @@
 	o	Vector<> gains a set of templated factory methods "create". create 
 	takes up to 20 arguments and can create named or unnamed vectors. 
 	
-	o	new class Rcpp::Argument, similar to Named but it does not hold the 
-	object, only the name. Argument is used in the create factory methods 
-	to associate a name with a value.
-
+	o	Named is no more a class but a templated function. Both interfaces
+	Named(.,.) and Named(.)=. are preserved, and extended to work also on 
+	simple vectors (through Vector<>::create) 
+	
 0.7.10  2010-03-15
 
     o	new class Rcpp::S4 whose constructor checks if the object is an S4 object

Modified: pkg/Rcpp/inst/ChangeLog
===================================================================
--- pkg/Rcpp/inst/ChangeLog	2010-03-19 15:31:39 UTC (rev 918)
+++ pkg/Rcpp/inst/ChangeLog	2010-03-19 15:57:10 UTC (rev 919)
@@ -1,5 +1,9 @@
 2010-03-19  Romain Francois <romain at r-enthusiasts.com>
 
+	* src/Rcpp/Named.h: Named is no longer a class, but a templated function. 
+	This preserves all the existing interface, but also allows Named to be used
+	in making simple vectors, e.g through the Vector::create factory functions
+
 	* src/Rcpp/Vector.h: Vector gains the "create" factory methods taking up 
 	to 20 arguments that can be named (using the Argument class or the _ 
 	placeholder)



More information about the Rcpp-commits mailing list