...Class::Contract is specifically tied to the concept of classes...
This is also mentioned in the Class::Contract POD under "Offering better facilities for retrofitting contracts".
Yep. This a cross-cutting concern that should not be tangled with a class definition framework. Such concerns are best untangled using the Aspect module. Of course it may be difficult to provide all the DBC features Class::Contract provides, like old() and inheritance support.
In reply to Re: Testing by Contract
by mvc
in thread Testing by Contract
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |