From ross at biostat.ucsf.edu  Fri May 19 19:23:19 2006
From: ross at biostat.ucsf.edu (Ross Boylan)
Date: Fri, 19 May 2006 10:23:19 -0700
Subject: [Rd] S4 classes and C
In-Reply-To: <17517.37850.60690.443326@stat.math.ethz.ch>
References: <1147974317.10544.23.camel@iron.psg.net>
	<m23bf79lz7.fsf@ziti.fhcrc.org>
	<17517.37850.60690.443326@stat.math.ethz.ch>
Message-ID: <1148059399.10544.52.camel@iron.psg.net>

On Fri, 2006-05-19 at 11:46 +0200, Martin Maechler wrote:
> >>>>> "Seth" == Seth Falcon <sfalcon at fhcrc.org>
> >>>>>     on Thu, 18 May 2006 12:22:36 -0700 writes:
> 
>     Seth> Ross Boylan <ross at biostat.ucsf.edu> writes:
>     >> Is there any good source of information on how S4 classes (and methods)
>     >> work from C?
> 
> Hmm, yes; there's nothing in the "Writing R Extensions" manual,
> and there's not so much in the ``The Green Book''
> (Chambers 1998), which is prominently cited by Doug Bates (and Saikat Debroy)
> in the paper given at DSC 2003 (mentioned earlier in this
> thread, http://www.ci.tuwien.ac.at/Conferences/DSC-2003/Drafts/BatesDebRoy.pdf )

Particularly relevant is Appendix A.6 of the Green book.  The index
isn't particularly helpful finding it.  Of course, Appendix A can't
answer the question of how the R implementation might differ.

For example, A.6 discusses GET_SLOT_OFFSET, which does not appear to be
available in R.

Thanks for the pointers.



[Rd] S4 classes and C
Ross Boylan