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

Re: method calls on $self

Thread Previous | Thread Next
From:
Robin Redeker
Date:
July 7, 2005 17:53
Subject:
Re: method calls on $self
Message ID:
20050707214410.GA4375@elmex
On Thu, Jul 07, 2005 at 04:08:17PM -0500, Jonathan Scott Duff wrote:
> 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?

Yes, why not? I don't see any conflicts for moving the methods into the
search space for methods.


Robin

-- 
elmex@x-paste.de / robin@nethype.de
Robin Redeker

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