[Rd] S4 classes and S3 generic functions

2010-06-13 Thread John Chambers
A general goal for the next version of R is to make S4 and S3 play better together. As mentioned in a previous thread, one limitation has been that S3 generic functions, specifically the UseMethod() call, did not make use of S4 inheritance when dispatching on general S4 objects. This has

Re: [Rd] S4 classes and S3 generic functions

2010-06-13 Thread Gabor Grothendieck
On Sun, Jun 13, 2010 at 6:58 PM, John Chambers j...@r-project.org wrote: A general goal for the next version of R is to make S4 and S3 play better together. As mentioned in a previous thread, one limitation has been that S3 generic functions, specifically the UseMethod() call, did not make

Re: [Rd] S4 classes and S3 generic functions

2010-06-13 Thread John Chambers
There are number of examples in the documentation, as noted, illustrating different situations. Here is one of them. Of course, to enter and run it you need rev 52267. --- setClass(classA, contains = numeric, representation(realData = numeric)) Math.classA - function(x)