Re: [Rd] full copy on assignment?

2010-04-04 Thread Norm Matloff
Thanks very much. By the way, I tried setting a GDB breakpoint at duplicate1(), with the following: > x <- 1:1000 > x[3] <- 8 > x[33] <- 88 I found that duplicate1() was called on both of the latter two lines. I was a bit surprised, since change-on-write would seem to imply that copyin

Re: [Rd] full copy on assignment?

2010-04-04 Thread Martin Morgan
On 04/04/2010 05:27 PM, Norm Matloff wrote: > Thanks very much. > > By the way, I tried setting a GDB breakpoint at duplicate1(), with the > following: > > > x <- 1:1000 > > x[3] <- 8 > > x[33] <- 88 Here's how I investigated this, with the last line somewhat surprising R -d gdb g