develooper Front page | perl.perl5.porters | Postings from April 2001

Re/ [PATCH] UNIVERSAL shouldn't require Exporter

From:
Mike Guy
Date:
April 26, 2001 05:52
Subject:
Re/ [PATCH] UNIVERSAL shouldn't require Exporter
Message ID:
E14slFY-0002h5-00@libra.cus.cam.ac.uk
Abhijit Menon-Sen <ams@wiw.org> wrote
> How about this, then?

What's the point of that?

I think you are failing to understand the comment.   The "historical
accident that should be fixed sometime" is that there is an import in
the UNIVERSAL:: namespace *at all*.    Having extra things in that namespace
is Very Bad since they are inherited *everywhere*.

It used to be much worse  -  see

http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1997-06/msg00997.html

But as Graham has pointed out, we can't withdraw it without going through
a deprecation cycle first.    And mending perlobj.pod.  :-(


Mike Guy



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About