[Rd] Why does slot<- duplicate its argument?

From: Renaud Gaujoux <renaud_at_mancala.cbio.uct.ac.za>
Date: Fri, 17 Jun 2011 13:35:38 +0200


is there a reason why `slot<-` should duplicate its argument? I am under R 2.12.1.

Thank you,

For example:

setClass('A', representation(data='matrix')) a <- new('A')
x <- matrix(1,2,3)
slot(a, 'data') <- x  

UNIVERSITY OF CAPE TOWN This e-mail is subject to the UCT ICT policies and e-mai...{{dropped:5}}

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 17 Jun 2011 - 11:38:45 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 17 Jun 2011 - 13:50:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive