Skip Menu |

This queue is for tickets about the base CPAN distribution.

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

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

Bug Information
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