[R] 2 setGeneric's, same name, different method signatures

William Dunlap wdunlap at tibco.com
Fri Feb 15 22:42:24 CET 2013

I thought you were thinking of the R class system (the S3 and S4 ones
anyway) as if it were C++'s.  It is quite different.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com

> -----Original Message-----
> From: Greg Minshall [mailto:minshall at umich.edu]
> Sent: Friday, February 15, 2013 1:37 PM
> To: William Dunlap
> Cc: r-help at r-project.org
> Subject: Re: 2 setGeneric's, same name, different method signatures
> William,
> > and here mention "intra-class name clashes" (I'm not sure what you
> > mean by this).
> sorry, i meant, in something like C++, if i have a class Foo and you
> have a class Bar, then i can invent whatever method names/signatures i
> want, independent of whatever method names/signatures *you* want.  *i*
> just need to make sure i don't introduce incompatible methods with the
> same name/signature *within* Foo.
> cheers, Greg

More information about the R-help mailing list