RConsortium / S7

S7: a new OO system for R
https://rconsortium.github.io/S7
Other
386 stars 32 forks source link

Ensure Ops falls back to base behaviour #382

Closed hadley closed 8 months ago

hadley commented 9 months ago

Fixes #320

I also tried this:

chooseOpsMethod.S7_object <- function(x, y, mx, my, cl, reverse) {
  S7_inherits(x) && S7_inherits(y)
}

But that leaves us with (e.g.) incompatible methods ("Ops.S7_object", "Ops.factor") for "+".