develooper Front page | perl.perl6.language | Postings from October 2001

Re: A3, the ';' operator, and hyper-operators

Thread Previous | Thread Next
From:
Bart Lateur
Date:
October 9, 2001 01:28
Subject:
Re: A3, the ';' operator, and hyper-operators
Message ID:
h7d5stspfsceo3733b8g9all42j6unqvj7@4ax.com
On Fri, 5 Oct 2001 06:00:07 +1000 (EST), Damian Conway wrote:

>   >     $foo + $bar
>   > 
>   > will call $foo's overloaded add if it has one no matter where $foo's used.
>
>Sorry. I should have been clearer.
>
>Dan is, of course, correct. Overloaded operators that are class methods
>will tag along with their objects as they currently do (as indeed, *all*
>methods currently do).

What do you mean, "class methods"? Here, "+" isn't a class method, but
an object method. Well, assuming $foo is an object, of course.

-- 
	Bart.

Thread Previous | 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