Re: [Rd] documentation of .C (PR#9948)

From: Thomas Lumley <>
Date: Wed, 10 Oct 2007 11:10:50 -0700 (PDT)

On Wed, 10 Oct 2007, wrote:

> Full_Name: Martin Schlather
> Version: R version 2.7.0 Under development (unstable) (2007-10-01 r43043)
> OS: Linux
> Submission from: (NULL) (
> Hi,
> There are 2 dangers with using 'DUP=FALSE' mentioned:
> * formal arguments
> * lists
> Would you also mention a third one, namely
> that values in R are now only referenced whenever
> possible and not always copied; hence .C(..., DUP=FALSE)
> may change the values of other local variables.

How about a warning like

"if you pass a local variable to .C/.Fortran with DUP=FALSE, your compiled code can alter the local variable and not just the copy in the return list. "


(copied from ?.C, of course) mailing list Received on Wed 10 Oct 2007 - 18:18:39 GMT

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 Thu 25 Oct 2007 - 11:37:10 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.