> On 18.03.2018, at 15:54, luke-tier...@uiowa.edu wrote: > > x <- setClass("foo", slots = "bar") > x <- new("foo", bar = 1) > y <- x > y@bar > ## [1] 1 > `@<-`(x, bar, 2) > y@bar > ## [1] 2 > > Will be fixed soon in R-devel. >
I always assumed that this behavior is intentional, in order to make S4 "initialize" work efficiently. - Lukas [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel