From maechler at stat.math.ethz.ch  Sat Sep 12 12:56:57 2009
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Sat, 12 Sep 2009 12:56:57 +0200
Subject: [Rd] S4 Generics and NAMESPACE : justified warning ?
In-Reply-To: <20090903124413.10c3763c@mimi>
References: <20090817135120.16fab862@mimi>
	<30312_1250600886_4A8AA7B5_30312_581_1_4A8AA986.3040702@fhcrc.org>
	<20090828162429.32576c07@mimi>
	<19099.51012.936944.591938@lynne.math.ethz.ch>
	<20090903124413.10c3763c@mimi>
Message-ID: <19115.32377.995283.673076@cmath-5.math.ethz.ch>

>>>>> "YC" == Yohan Chalabi <chalabi at phys.ethz.ch>
>>>>>     on Thu, 3 Sep 2009 12:44:13 +0200 writes:

    >>>>> "MM" == Martin Maechler <maechler at stat.math.ethz.ch>
    >>>>> on Mon, 31 Aug 2009 14:51:16 +0200

    MM> Yes, I agree, unjustified in your case.  The question
    MM> is: is there a patch which does differentiate between
    MM> your situation and Martin's scenario -- or does your
    MM> patch already do that?


    YC> Hi Martin,

    YC> Thanks for your response.

    YC> Here is an attempt to combine both views.

    YC> To check if the generic was derived from the function it
    YC> wants to overwrite, the following patch checks if the
    YC> package associated with the generic is the same as the
    YC> one where the function was defined.

    YC> regards, Yohan

    [.....]

I have now committed your proposal (+-),
and also added <R>/tests/Pkgs/ in order to allow checking such 
Namespace <-> S4 and other package dependencies.

Martin Maechler, ETH Zurich



[Rd] S4 Generics and NAMESPACE : justified warning ?
Martin Maechler