develooper Front page | perl.perl5.porters | Postings from June 2012

[perl #47113] UNIVERSAL::can is wrong for unloaded classes

Thread Previous | Thread Next
From:
Jesse Luehrs via RT
Date:
June 22, 2012 12:15
Subject:
[perl #47113] UNIVERSAL::can is wrong for unloaded classes
Message ID:
rt-3.6.HEAD-5009-1340392495-1399.47113-14-0@perl.org
I've pushed a fix for this to the doy/universal branch. It's pretty
straightforward, but some of the tests in t/op/universal.t were testing
for this behavior explicitly (checking that can() was false before a
package existed and true afterwards), so I'm not sure if this is
reasonable to just change directly. I am in favor of making this change
though, so any input is welcome.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About