Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: f0ef35deb0072805b68cef82ebe28739f67ca79a https://github.com/Perl/perl5/commit/f0ef35deb0072805b68cef82ebe28739f67ca79a Author: Graham Knop <ha...@haarg.org> Date: 2022-03-01 (Tue, 01 Mar 2022)
Changed paths: M dist/Attribute-Handlers/lib/Attribute/Handlers.pm Log Message: ----------- wrap any existing import in Attribute::Handlers' injected import Some modules using Attribute::Handlers autotie feature have their own import method. When injecting an import method, attempt to wrap anything that exists, either in the class directly or in a parent class. We can't detect parent classes at injection time, because @ISA may change, and this is actually common since users of Exporter will add it as a parent class at module runtime, while Attribute::Handlers injection would happen first during compilation. A better approach could involve using next::can from mro, but that also requires Sub::Util::set_subname, and Attribute::Handlers is dual life and currently supports 5.6.