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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 292
Download (untitled) / with headers
text/plain 292b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/html; charset="utf-8"
Message-ID: <rt-4.0.18-21018-1437399589-1749.28580-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 353
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/
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-28715-1437441469-100.28580-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 265
Download (untitled) / with headers
text/plain 265b
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 is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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