perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: back compatibility layer for method handlers?
Date Tue, 22 Jan 2002 01:58:07 GMT


Stas Bekman wrote:

> Doug MacEachern wrote:
> 
>> On Mon, 21 Jan 2002, Stas Bekman wrote:
>>
>>
>>> A "method handler" is now specified using the `method' sub attribute, 
>>> e.g.
>>>
>>> sub handler : method {};
>>>
>>> instead of 1.xx's
>>>
>>> sub handler ($$) {}
>>>
>>
>> there's no need to support that in 2.0, since 1.x has supported the 
>> method
>> attribute for nearly 2 years:
>>
>> =item 1.24 - May 16, 2000
>>
>> 'sub handler : method {}' is now treated as a method handler
>>
>> so that code will work with both 1.x and 2.x.
> 
> 
> 
> Cool, but it's not documented anywhere. Not in the pods, nor in the 
> eagle book. The book advertises only the $$ proto, as it was published 
> before the feature was added. I doubt many people know about this 
> feature. e.g. do you cover this in your new book Geoff?


I wasn't aware of it, even though I played with the code for it before I 
covered method handlers and should have figured it out.  I wish I had. 
oh, well *sigh*


> 
> Anybody cares to submit a doc patch for this feature in 1.x?


yeah, I'll find a place for it.

--Geoff



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message