Bug#766229: ITP: libex-monkeypatched-perl -- experimental API for safe monkey-patching

Jonas Smedegaard dr at jones.dk
Tue Oct 21 16:39:16 UTC 2014


Package: wnpp
Severity: wishlist
Owner: Jonas Smedegaard <dr at jones.dk>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

* Package name    : libex-monkeypatched-perl
  Version         : 0.03
  Upstream Author : Aaron Crane <arc at cpan.org>
* URL             : https://metacpan.org/release/ex-monkeypatched
* License         : Artistic or GPL-2
  Programming Lang: Perl
  Description     : experimental API for safe monkey-patching

 The term "monkey patching" describes injecting additional methods into
 a class whose implementation you don't control.  If done without care,
 this is dangerous; the problematic case arises when:
  * You add a method to a class;
  * A newer version of the monkey-patched class adds another method of
    the same name
  * And uses that new method in some other part of its own
    implementation.

 ex::monkeypatched lets you do this sort of monkey-patching safely:
 before it injects a method into the target class, it checks whether the
 class already has a method of the same name.  If it finds such a
 method, it throws an exception (at compile-time with respect to the
 code that does the injection).
 .
 See <http://aaroncrane.co.uk/talks/monkey_patching_subclassing/> for
 more details.

Needed by libcatmandu-marc-perl.

Will be maintained in the Perl team.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQF8BAEBCgBmBQJURowxXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ3NjQ4ODQwMTIyRTJDNTBFQzUxRDQwRTI0
RUMxQjcyMjM3NEY5QkQ2AAoJEE7BtyI3T5vWNFoIAL6pRvhNkJgBnQ+6L/qfXUYa
637tGyfDlepex7qxn05X19dDkhieOojHbu8hmIWpdtgGYwp4UTi45h4HnRFTnW3X
fp2m4BKBjtKYfsMnjgmyc7HuVisxZCOX7N/h4D/9q04HC0PoR7cunRK3lRoZ0fcv
CzossSk4mX0GMJe+WtDDsVvOMrIr0CI7EPbVoFSnhIHzvsxSRt5fR4Cj8dCljutU
elLErVAIufc0QJ3KTvVyhri0wGT/TZbR8mLsZw2OTl/AD51fg0JW7xSubNXqw0g9
lgI9zaBhrW9mT+SeEPsj2SXpZhR2X/k1vck1MbpPOpjVh3akoMP+9AwAiOYaD2U=
=m5ov
-----END PGP SIGNATURE-----



More information about the pkg-perl-maintainers mailing list