Bug#677588: perl: Storing shared_clone with overload in shared_clone strips off overload
James McCoy
jamessan at debian.org
Sat Jun 16 00:57:14 UTC 2012
tag 677588 fixed-upstream
thanks
On Thu, Jun 14, 2012 at 11:52:03PM -0400, James McCoy wrote:
> The attached script demonstrates the problem through a series of tests.
> Basically, after
>
> my $arr = shared_clone([$objWithOverloads]);
> my $obj = $arr->[0];
>
> $obj no longer behaves the same as $objWithOverloads. Any of the
> overloaded methods defined are no longer invoked automatically in the
> relevant contexts.
Which I just noticed was fixed in 5.17.0 by a series of commits ending
with a1cd65be3e8d2e7a6b4edef2ff5eee74e79cf497.
I'm not sure if the shared_clone tests would be useful additions to
upstream's lib/overload.t or if their tests already cover the same paths
the shared_clone stuff covers.
--
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan at debian.org>
More information about the Perl-maintainers
mailing list