Skip to content

Can I write methods for ":"?

2 messages · Jeffrey J. Hallman, Brian Ripley

#
Is there a way to overload the ":" operator?  I have a class called
"ti", but I found that 

firstTi:secondTi

does not dispatch to either Ops.ti nor to ":.ti" if I define that.  Am I
just out of luck?

Jeff
#
On Wed, 10 Nov 2004 jhallman@frb.gov wrote:

            
Well, it is not in the Ops group, so what made you think it would work?

If you mean S3 methods, then ":" is not an S3 generic.  If it were, it 
would be documented.