develooper Front page | perl.perl6.language.objects | Postings from August 2000

Re: RFC 159 (v1) True Polymorphic Objects

Thread Next
From:
Tom Christiansen
Date:
August 25, 2000 11:13
Subject:
Re: RFC 159 (v1) True Polymorphic 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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About