[Rd] Methods dispatched on "..."

From: John Chambers <jmc_at_r-project.org>
Date: Mon, 11 Aug 2008 12:14:43 -0400

A new facility has been committed for version 2.8.0 that allows S4 generics to be defined with "..." as the signature.

Methods are then defined with a single class in the signature. The interpretation is that the method will be selected and called when all the arguments matching "..." are from the specified class, or some subclass of that class. See ?dotsMethods for details.

The current implementation is a test. It's dispatch is done in R code, as described in the documentation. Once the desired semantics are clear, it's a natural candidate for adding to the current C dispatch code. Also, in this version "..." cannot be combined with other arguments in the generic function's signature. This is also not a total necessity and might be relaxed, after the dispatch is rewritten.

Please play with it, if it sounds useful.


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 11 Aug 2008 - 16:31:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 11 Aug 2008 - 16:36:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive