In the first scenario, your object is class AB, then class A with distance
1, then class B with distance 2. This means that method A is preferable
since it is less distance away than method B.
However, in your second function, both methods are a total distance of 3
away, so (as far as I know) it c
I am trying to make sense why the following does *not* result in
ambiguous method selection and thus a warning:
> setClass("A", slots=c(a = "numeric"))
> setClass("B", slots=c(b = "numeric"))
> setClass("AB", contains=c("A", "B"))
> setGeneric("myg", function(object) standardGeneric("myg"))
[1
2 matches
Mail list logo