From saikat@stat.wisc.edu  Wed May  8 17:45:57 2002
From: saikat@stat.wisc.edu (Saikat DebRoy)
Date: 08 May 2002 11:45:57 -0500
Subject: [Rd] Questions about S4 style methods and generics
Message-ID: <qxp661ysi4a.fsf@verdi.stat.wisc.edu>

I have some questions about S4 style methods and generics.

First of all, is there any way of using default values for arguments
in the generics/methods? My own experiments show that such arguments
are always ignored. The green book seems to be silent on this
matter.

The second question is about using a non-trivial function body for
generics. Page 351 of the green book gives an example of this and the
documentation for setGeneric seems to suggest I should be able to do
this at least by using myDispatch=TRUE. However, the current
implementation seems to set the body of the generic definition to a
call to standardGeneric all the time. Is this a bug or a modification
of the green book description?

Thanks,

Saikat
-- 
Department of Statistics                       Email: saikat@stat.wisc.edu
University of Wisconsin - Madison              Phone: (608) 263 5948
1210 West Dayton Street                        Fax:   (608) 262 0032
Madison, WI 53706-1685
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Questions about S4 style methods and generics
Saikat DebRoy