feature.pm: Move hint normalisation to separate function
authorFather Chrysostomos <sprout@cpan.org>
Fri, 23 Dec 2011 06:31:59 +0000 (22:31 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 24 Dec 2011 17:25:19 +0000 (09:25 -0800)
commit83141fdc89d784eac3fe1e46c6b00a63c868774f
tree4b1b7c4cd1817d13b8576eccf603c8b788e15540
parent6634bb9d0ed117be3584c9446cc6b05b93e3c773
feature.pm: Move hint normalisation to separate function

PL_hints/$^H can hold feature bundle hints that cause %^H to be
ignored when features are looked up.

When feature->import and ->unimport are invoked, they set bits in $^H
such that %^H is used once more.  But they have to modify %^H to con-
tain what the bits in $^H imply.

Up till now, unimport was delegating to import, which meant that more
work was being done than necessary, because import would then detect
the special condition of $^H and repeat (some of) that work.
lib/feature.pm
regen/feature.pl