This queue is for tickets about the Package-Alias CPAN distribution.

Report information
The Basics
Id:
52314
Status:
resolved
Worked:
10 minutes
Users:
JOSHUA: 10 minutes
Priority:
Low/Low
Queue:

People
Owner:
jkeroes [...] gmail.com
Requestors:
jpierce [...] cpan.org
Cc:
AdminCc:



Subject: More robust "aliasing"
The attached patch adds useful functionality to the module to allow truer substitution of one module for another by twiddling %INC. If &alias works can be used at run/INIT/BEGIN- time, it may want to be explicitly documented?
Subject: patchy

Message body not shown because it is not plain text.

Doh, probably want to remove the warn "foo\n"; A debug line from trying to figure out why it doesn't work with aliasing Mouse to Moose. Apparently Mouse makes some gross assumptions about how thing should be done, and does lots of deep magic to prevent this from working. Normal stuff aliases with use fine though.
Revised patch that removes debug info and uses INIT to delay the namespace aliasing so that Mouse can be mapped to Moose.

Message body not shown because it is not plain text.

Subject: Final patch
More robust implementation. Turns out INIT wasn't the solution, and there was no way to make Mouse happy within the module itself, because of use's calls to import... so a work-around was found and documented. The Mouse work-around is unfortunately kind of large, but I've suggested to the Mouse maintainers that Any::Moose be switched to use Package:::Alias and obscure that from the end-user, at which point it could be removed and a simple SEE ALSO be added.

Message body not shown because it is not plain text.

On Tue Dec 01 16:17:42 2009, JPIERCE wrote:
Show quoted text
> More robust implementation. > > Turns out INIT wasn't the solution, and there was no way to make Mouse > happy within the module itself, because of use's calls to import... > so a work-around was found and documented. > > The Mouse work-around is unfortunately kind of large, > but I've suggested to the Mouse maintainers that Any::Moose > be switched to use Package:::Alias and obscure that from the end-user, > at which point it could be removed and a simple SEE ALSO be added.
0.11 patch accepted, merged into mainline, and released to CPAN as Package-Alias-0.12. Thanks!
This ticket should be closed. -- rjbs
Resolved in 0.12.


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.