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

deprecate UNIVERSAL->import

Thread Next
From:
Ricardo SIGNES
Date:
January 26, 2009 07:14
Subject:
deprecate UNIVERSAL->import
Message ID:
20090126151442.GB4904@cancer.codesimply.com

I mean, honestly.

There is no reason for UNIVERSAL.pm 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'.

-- 
rjbs

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