Skip Menu |

This queue is for tickets about the MRO-Compat CPAN distribution.

Report information
The Basics
Id: 28394
Status: resolved
Priority: 0/
Queue: MRO-Compat

People
Owner: blblack [...] gmail.com
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Allow optional exporting
MRO::Compat does not export anything by default, but it would be nice if it allowed the user option of asking for functions to be exported by listing them in @EXPORT_OK.
On Fri Jul 20 01:11:30 2007, MSCHWERN wrote: Show quoted text
> MRO::Compat does not export anything by default, but it would be nice if > it allowed the user option of asking for functions to be exported by > listing them in @EXPORT_OK.
I suppose mro::import (MRO::Compat's version and the one in the perl core, they need to be compatible) could optionally export the mro::* funcs. I hadn't set it up this way from the beginning because (a) "mro::" is 5 characters, and (b) I'm not a big fan of function export/import, but I could be convinced otherwise.
Offering the export would mean an interface change for MRO::Compat, which I can't do without changing the interface of mro.pm in 5.10 as well (since the whole point of MRO::Compat is to offer an identical interface to that), and it's a bit late in the game for any changes there, so I think this is just how it will have to be.
From: MSCHWERN [...] cpan.org
On Sun Sep 09 12:00:29 2007, BLBLACK wrote: Show quoted text
> Offering the export would mean an interface change for MRO::Compat, > which I can't do without changing the interface of mro.pm in 5.10 as > well (since the whole point of MRO::Compat is to offer an identical > interface to that), and it's a bit late in the game for any changes > there, so I think this is just how it will have to be.
I would understand if this was modifying or taking away a feature, but this is just adding purely optional exports. However, I just took a look at mro.pm for the first time. What I did not know is that mro already uses import to control the pragma rather than export. That would make wedging in function export syntax difficult. Now I see where the miscommunication lies and why you said it's not worth it. Request dropped. Sorry to bother.
OK :)