develooper Front page | perl.perl5.porters | Postings from February 2009

Re: deprecate UNIVERSAL->import

Thread Previous | Thread Next
Rafael Garcia-Suarez
February 7, 2009 06:38
Re: deprecate UNIVERSAL->import
Message ID:
2009/1/26 Ricardo SIGNES <>:
> I mean, honestly.
> There is no reason for to be loaded, as it does two things: set a
> VERSION and setup an &import.  The import should not be used, as we've been
> asking people to stop for quite some time now, and it's just a lousy idea.  The
> VERSION isn't necessary because (a) there's no code to worry about changing and
> (b) the version is directly determinable from $] outside of blead, anyway.
> This patch introduces a lexical 'deprecated' warning'.

Thanks, applied as 1d9f57de1578571277e83372972a28d6d830e713, and I
also added a test in the next commit. Amazingly, the test suite
doesn't emit any warning.

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