Re: [Rd] .C clarification

2012-03-03 Thread Prof Brian Ripley
On 03/03/2012 13:42, Terry Therneau wrote: Does .C duplicate unnecessary arguments? For instance fit<- .C("xxx", as.integer(n), x, y, z=double(15)) The first and fourth arguments would have NAMED = 0. Is my guess that .C won't make yet one more (unnecessary) copy correct? .C's internals (d

[Rd] .C clarification

2012-03-03 Thread Terry Therneau
Does .C duplicate unnecessary arguments? For instance fit <- .C("xxx", as.integer(n), x, y, z=double(15)) The first and fourth arguments would have NAMED = 0. Is my guess that .C won't make yet one more (unnecessary) copy correct? (Just trying to understand). Terry T