Re: RFC 159 (v1) True Polymorphic Objects

[email protected] (Tom Christiansen)
Newsgroups perl.perl6.language.objects
Message-ID <5678.967227207@chthon>
>Jonathan Scott Duff wrote:
>> 
>> >    Operator Overloading
>> >    -------------------------------------------------
>> >    PLUS             Called in + context
>> >    MINUS            Called in - context
>> >    TIMES            Called in * context
>> >    DIVIDED          Called in / context
>> >    MODULUS          Called in % context
>> 
>> How about ye olde ADD, SUB, MUL, DIV, and MOD?

>Yeah, these are good. They're the "wrong tense", but they are all the
>same length, which is a plus.

I encourage one to examine how Python does this.  Particularly attractive
is the way one does not have to distinguish between tie and operator 
overloading there.

--tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.