New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overload::Method does not return coderef of aliased subroutines #13980
Comments
From zaki.mughal@gmail.comHello, I think that there might be a bug in how overload::Method() works for This was uncovered while working with PDL: <http://sourceforge.net/p/pdl/bugs/356/>. Cheers, Flags: Site configuration information for perl 5.20.0: Configured by zaki at Thu Jul 3 19:17:57 CDT 2014. Summary of my perl5 (revision 5 version 20 subversion 0) configuration: @INC for perl 5.20.0: Environment for perl 5.20.0: |
From @jkeenanOn Fri Jul 11 14:29:05 2014, zaki.mughal@gmail.com wrote:
Confirmed: Joins the list of New or Open bugs related to 'overload': http://preview.tinyurl.com/olhv5np |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Fri Jul 11 14:29:05 2014, zaki.mughal@gmail.com wrote:
You are taking a reference to the old value of *aliased_str{CODE} before the new value gets assigned. If you want this to work, you not only need to change the order of the code, but also put the assignment in a BEGIN block, since ‘use’ happens at BEGIN time: BEGIN { *aliased_str = \&str; } use overload '""' => \&aliased_str; This is not a bug in perl. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#122276 (status was 'rejected')
Searchable as RT122276$
The text was updated successfully, but these errors were encountered: