[Bioperl-l] deprecated(), was Re: use of no_* to mean 'number_of', negative booleans

Chris Fields cjfields at illinois.edu
Tue Jun 9 22:54:47 EDT 2009

On Jun 9, 2009, at 8:13 PM, Robert Buels wrote:

> Chris Fields wrote:
>>> Actually, that's one thing I want to implement within Root, namely  
>>> the ability to do this:
>>> $self->deprecated(-message     => 'method Foo is deprecated',
>>>                 -start_ver   => $version1,
>>>                 -throw_ver   => $version2
>>> );
> Here's a patch with tests against the svn trunk head.  Is this what  
> you had in mind?
> -- 
> Rob

Funny, I had written up almost exactly the same code, just a little  
rearranged.  I've modified mine to follow your use of -warn_version (I  
also had -throw_version as a synonym of -version, JIC).  Also, for the  
tests I created a temp class in the tests and ran tests off that.   
Thanks for the patch!


More information about the Bioperl-l mailing list