develooper Front page | perl.perl6.language | Postings from July 2005

Re: method calls on $self

Thread Previous | Thread Next
Jonathan Scott Duff
July 7, 2005 14:08
Re: method calls on $self
Message ID:
On Thu, Jul 07, 2005 at 10:32:37PM +0200, Robin Redeker wrote:
> Hi,
> i just wanted to ask what was about the method calling syntax on
> $self, and why does
>    method ()
> not work for calling a method on $self? (like in C++)

Because perl can't distinguish between the method foo() and the
subroutine foo().  Or are you proposing that methods be added to the
search space for name resolution?

Jonathan Scott Duff

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