[Rd] passing pointer types via .C calls

Richard Beare Richard.Beare@cmis.csiro.au
Mon, 05 Mar 2001 09:23:09 +1000

this relates to my earlier message about external references and
finalizers. I was experimenting over the weekend and now suspect that
the appropriate solution to my problem will be to have a special case in
the code that handles the .C call so that external references are
handled appropriately - I guess that a pointer to the reference should
be passed to the C code. As I've never experimented with the R internals
before I thought that I had better check peoples opinion. Does this
approach break anything in the work the Luke Tierney has been doing?
I've only had a quick look so far so I'm not really certain how the code
that handling the .C call is meant to work. I have successfully passed
the pointer to the external reference to my code, but I'm really not
sure about how the conventions used for this kind of thing - who should
I be talking to about it?

All advice welcome....

Richard Beare, CSIRO Mathematical & Information Sciences
Locked Bag 17, North Ryde, NSW 1670, Australia
Phone: +61-2-93253221 (GMT+~10hrs)  Fax: +61-2-93253200

r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch