全部搜索项
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 源代码: libex-monkeypatched-perl  ]

软件包:libex-monkeypatched-perl(0.03-2)

libex-monkeypatched-perl 的相关链接

Screenshot

Debian 的资源:

下载源码包 libex-monkeypatched-perl

维护小组:

外部的资源:

相似软件包:

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.

标签: 软件开发: Perl 开发, 函数库, 实做语言: Perl

其他与 libex-monkeypatched-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 libex-monkeypatched-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 12.3 kB29.0 kB [文件列表]