Garrett Goebel

Modules

Changes for version 1.14

  • croak and carp are wrapped to facilitate reporting correct file and line numbers within impl. Previously it was hard to get useful file/line information when throwing an exception within implementations.
  • private Forgetting to declare an inherited private method private will cause croak. If for example you are adding pre/post-conditions or defining a new implementation for a derived method, you must declare it 'private', or an exception will be raised.
  • old is now off by default. I have noticed, and others have complained that it caused too much overhead. To toggle on/off per package: use Class::Contract 'old'; no Class::Contract 'old';