From tklistaddr@keittlab.bio.sunysb.edu  Wed Jul 11 00:24:05 2001
From: tklistaddr@keittlab.bio.sunysb.edu (Timothy H. Keitt)
Date: Tue, 10 Jul 2001 19:24:05 -0400
Subject: [Rd] Object finalization
Message-ID: <3B4B8E95.7070307@keittlab.bio.sunysb.edu>

I see some code in R to attach finalizers to external pointer references 
(Register[C]Finalizer).  Anyone have an example of how to code the 
finalizer?  R_RegisterCFinalizer accepts a C function, but I can't see 
how to get it to operate on the pointer, since the pointer is not passed 
to the function when its called.  RegisterFinalizer takes an R closure, 
but how is it called from R (tried .Internal)?

Tim

-- 
Timothy H. Keitt
Department of Ecology and Evolution
State University of New York at Stony Brook
Stony Brook, New York 11794 USA
Phone: 631-632-1101, FAX: 631-632-7626
http://life.bio.sunysb.edu/ee/keitt/

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Object finalization
Timothy H. Keitt