diff options
author | Graham Knop <haarg@haarg.org> | 2022-03-01 08:31:03 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2022-03-01 16:20:36 +0100 |
commit | f0ef35deb0072805b68cef82ebe28739f67ca79a (patch) | |
tree | dae12b8e86de697f54752069dc7fe8fa6b11e8d9 /utf8.h | |
parent | 5fd455724334701f8b57422da66c641df3c87963 (diff) | |
download | perl-f0ef35deb0072805b68cef82ebe28739f67ca79a.tar.gz |
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.
Diffstat (limited to 'utf8.h')
0 files changed, 0 insertions, 0 deletions