From cgenolin at u-paris10.fr  Tue Jun  9 22:11:51 2009
From: cgenolin at u-paris10.fr (Christophe Genolini)
Date: Tue, 09 Jun 2009 22:11:51 +0200
Subject: [Rd] Inheritance before ANY...
Message-ID: <4A2EC207.5070007@u-paris10.fr>

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)

Sincerely
Christophe


------------------ (translate from french) --------
Note : method with signature "A#missing" chose for function "plot",
signature cible "B#missing".
"B#ANY" could also be compatible



[Rd] Inheritance before ANY...
Christophe Genolini