From jmc@research.bell-labs.com  Fri Jan 18 15:59:01 2002
From: jmc@research.bell-labs.com (John Chambers)
Date: Fri, 18 Jan 2002 10:59:01 -0500
Subject: [Rd] Should dots be used in generic functions?
References: <5q7g4ukk1e73c3tabs3cethicncefap72k@4ax.com> <3C48362F.2856D89@research.bell-labs.com> <3C4843DE.58B734DD@bank-banque-canada.ca>
Message-ID: <3C484645.C75F29FB@research.bell-labs.com>

Paul Gilbert wrote:
> 
> John Chambers wrote:
> 
> > 2- the method can have arguments not in the generic if the generic has
> > ..., with the interpretation that the actual arguments matching ... may
> > correspond to the extra arguments.
> 
> In this case, would the method have ... as well, or not?

Subject to discussion .... Either seems plausible.  What currently
happens is that setMethod constructs a method that contains the
programmer's supplied definition as a local function and calls it
(needed so that argument re-matching can take place).

An advantage of the method not having ... is that errors in naming
arguments are more likely to be caught.

John

> 
> Paul Gilbert
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-- 
John M. Chambers                  jmc@bell-labs.com
Bell Labs, Lucent Technologies    office: (908)582-2681
700 Mountain Avenue, Room 2C-282  fax:    (908)582-3340
Murray Hill, NJ  07974            web: http://www.cs.bell-labs.com/~jmc
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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] Should dots be used in generic functions?
John Chambers