Re: [R] Use of contains in S4 classes

From: Paul Roebuck <roebuck_at_odin.mdacc.tmc.edu>
Date: Fri 19 Aug 2005 - 08:30:11 EST

On Thu, 18 Aug 2005, Ross Boylan wrote:

> setClass("B", representation=representation("B", extra="numeric))
> setClass("B", representation=representation(extra="numeric"),
> contains="B")
> Are these the same? If not, how do they differ?
>
> What about
> setClass("B", representation=representation("B", extra="numeric"),
> contains="B")
> ?
>
> As far as I can tell, the Green Book doesn't talk about a contains
> argument to setClass.

"S4 - Composition and Inheritance" by Witold Eryk Wolski (a.k.a. Extending.pdf) might be what you're looking for.



SIGSIG -- signature too long (core dumped)

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 19 08:36:59 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:54 EST