Changes for version 1.14 - 2001-06-18
- <C>croak</C> and <C>carp</C> are wrapped to facilitate reporting correct file and line numbers within <C>impl</C>. Previously it was hard to get useful file/line information when throwing an exception within implementations.
- <C>private</C> 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.
- <C>old</C> 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';
Modules
Design-by-Contract OO in Perl.
Design-by-Contract OO in Perl.
Provides
in lib/Class/Contract.pm
in lib/Class/Contract.pm
in lib/Class/Contract.pm