Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.OSF.4.58.0508181726190.199813@odin.mdacc.tmc.edu>
Date: 2005-08-18T22:30:11Z
From: Paul Roebuck
Subject: Use of contains in S4 classes
In-Reply-To: <1124399671.26136.5.camel@iron.libaux.ucsf.edu>

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)