This queue is for tickets about the base CPAN distribution.

Report information
The Basics
Id:
28580
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
rjbs [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Wishlist
Broken in:
(no value)
Fixed in:
(no value)



Subject: I want to call import on base classes sometimes
Sometimes I subclass a plugin class which also offers exports for "utility" functions and have to write: use BaseClass ":extras"; use base 'BaseClass'; How about allowing something like: use base BaseClass => [ ':extras' ]; refs are not legal in args to base->import, atm. -- rjbs
Le 2007-07-31 14:23:46, RJBS a écrit :
Show quoted text
> How about allowing something like:
>
> use base BaseClass => [ ':extras' ];


@rjbs,

Do you still want this in base.pm?

-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
Tough question. I never use base.pm anymore, so I might want this in parent.pm, but am pretty sure it would be rejected, as version checks were. So maybe if I want it in the future I'll submit a PR to superclass.pm but I never use base anymore Thanks! -- rjbs


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.