全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: libex-monkeypatched-perl  ]

套件:libex-monkeypatched-perl(0.03-1.1)

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。0 kB29。0 kB [檔案列表]