From sfalcon at fhcrc.org  Fri Mar 16 22:58:10 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Fri, 16 Mar 2007 14:58:10 -0700
Subject: [Rd] Inherited S4 methods
In-Reply-To: <45FB0396.2060209@aon.at> (cstrato@aon.at's message of "Fri,
	16 Mar 2007 21:52:38 +0100")
References: <45FB0396.2060209@aon.at>
Message-ID: <m2abyc4zrh.fsf@ziti.local>

cstrato <cstrato at aon.at> writes:

> Dear Seth
>
> Thank you, maybe I still do not understand S4 methods.
>
> I thought that the purpose of function "callNextMethod()" is to allow
> some kind of inheritance. In the Bioconuductor packages which are
> using S4, it is only used for method("initialize") but I thought, that
> it can be used with every method "mymethod()", is this correct?

Yes, callNextMethod can be used in any method definition.  When you
call a generic function, the system creates a list of all methods for
that generic that are applicable and orders them so that the most
specific method comes first.  When you call callNextMethod, you enter
the next most specific method.

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org



[Rd] Inherited S4 methods
Seth Falcon