[Rd] Inheritance before ANY...

From: Christophe Genolini <cgenolin_at_u-paris10.fr>
Date: Tue, 09 Jun 2009 22:11:51 +0200

Hi all,
I am programming using S4. I define two classes, "B" is inheriting from
"A". Apparently (at least since version 2.9.0 ?), when the correct
signature is not find,
R prefers to chose a signature in the ancestor BEFORE a signature in the class. This is very strange to me...

If I define plot for ("A",missing) and ("B",ANY), calling plot("B",missing), I would expect R to chose plot("B",ANY) before plot("A",missing)


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 09 Jun 2009 - 20:19:30 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 Wed 10 Jun 2009 - 13:35:46 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