develooper Front page | perl.perl5.porters | Postings from May 2008

Re: thoughts about overloading method calls

Thread Previous | Thread Next
Ævar Arnfjörð Bjarmason
May 6, 2008 19:53
Re: thoughts about overloading method calls
Message ID:
On 5/6/08, Ricardo SIGNES <> wrote:
>   a) what does ref return?

The return value could not make sense since the class would not be
anonymous, or it would have to return something like "ARRAY" which
would be worse.

>   b) how do I set up operator overloading?

You couldn't, I guess.

> Doing this with blessed-into-code seems a bit more convoluted.

Indeed, I really hadn't thought it through:)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About