[Rd] Wondering about methods (selecting a less specialized method)

From: Byron Ellis <ellis_at_stat.harvard.edu>
Date: Mon 11 Dec 2006 - 19:55:23 GMT


Hi All,

I find myself wondering if there is a canonical means of achieving the multiple-dispatch version of 'super'? Specifically, I have a set of classes

A, B, X and Y where B extends A

and a method Foo with the signature (X,A,Y) and I'd like to implement Foo with the signature (X,B,Y) such that it calls Foo_(X,A,Y) and then does "other stuff." This gets a bit complicated with multiple inheritance but at the moment the best I can think to do is an explicit call to selectMethod.



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Dec 13 06:06:56 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 13 Dec 2006 - 01:31:05 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.