On 22 August 2013 at 08:21, Romain Francois wrote:
| Then I can do this:
| 
| # Reference Class of B
| B_R <- setRefClass( "B_R",
|      fields = list(id="numeric")
| )
| b1 <- new( "B_R", id = 1 )
| b2 <- new( "B_R", id = 1 )
| a <- new( A, list(b1,b2) )

Beautiful. Thanks for putting that in.

Dirk

-- 
Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to