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
October 29, 2007 21:05
Re: [perl #46987] OO-call failures, autoviv-functions & testing their existence
Message ID:
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 

-- c

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