Skip Menu |
 

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

Report information
The Basics
Id: 52314
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Package-Alias

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

Bug Information
Severity: Normal
Broken in:
  • 0.01
  • 0.02
  • 0.03
  • 0.04
Fixed in: 0.12



Subject: More robust "aliasing"
Download (untitled) / with headers
text/plain 226b
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
Download patchy
application/octet-stream 2.5k

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 318b
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.
Download (untitled) / with headers
text/plain 121b
Revised patch that removes debug info and uses INIT to delay the namespace aliasing so that Mouse can be mapped to Moose.
Download patchy
application/octet-stream 2.7k

Message body not shown because it is not plain text.

Subject: Final patch
Download (untitled) / with headers
text/plain 463b
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.
Download patchy
application/octet-stream 3.4k

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 624b
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 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.