I dont know how to deal with the name of a generic function, e.g.
setClass(Class = "ABC",
representation = representation(a="numeric")
)
ABC<-function(a=1){new("ABC",a=a)}
setGeneric("geta", function(object) standardGeneric("geta"))
setMethod("geta", signature = "ABC", definition = function(object) object@a)
a<-ABC()
geta(a)
geta<-4
geta(a)#Error: could not find function "geta"
You see what I mean, there function get lost or is being overwritten by the definition of geta<-4
.