From jgentry at jimmy.harvard.edu  Thu Apr 21 21:22:25 2005
From: jgentry at jimmy.harvard.edu (Jeff Gentry)
Date: Thu Apr 21 21:19:54 2005
Subject: [Rd] Overloading methods in R
In-Reply-To: <BAY17-F25B1871E5EAA74B9424957D12C0@phx.gbl>
Message-ID: <Pine.SOL.4.20.0504211520200.24738-100000@santiam.dfci.harvard.edu>


On Thu, 21 Apr 2005, Ali - wrote:
> I guess the context says you cannot have something like this in S4:
> >setGeneric("testFun", function(...)
> + standardGeneric("testFun"))

But what is wrong with:

setGeneric("testFun", function(object, ...))

Keeping in mind that 'object' is the actual instantiated object of the
class which you wish to operate on.  I guess I don't see how that aspect
is a problem?


[Rd] Overloading methods in R
Jeff Gentry