develooper Front page | perl.perl5.porters | Postings from October 2007

Re: [perl #46987] OO-call failures, autoviv-functions & testing their existence

Thread Previous | Thread Next
From:
chromatic
Date:
October 29, 2007 21:05
Subject:
Re: [perl #46987] OO-call failures, autoviv-functions & testing their existence
Message ID:
200710292104.53414.chromatic@wgz.org
On Monday 29 October 2007 19:37:10 Linda W wrote:

> I claim method calls look for
> methods.  You are stuck in Perl's internals talking about 'entries'.

Objection: Perl 5 makes no distinction in storage between methods and subs.  
Method calls in Perl 5 do not look for methods.  If you're lucky (or 
disciplined), Perl 5 will find methods.  If you're unlucky (or 
undisciplined), Perl 5 will find subs.

Having subs into packages which you expect to contain only 
subs-acting-as-methods will lead to surprising behavior now and then, as in 
this case.

I suppose that this could be a bug if you look at it a certain way, but 
distinguishing between methods and subs would be a very big change for Perl 
5.

-- c

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