Moritz Lenz moritz-at-casella.verplant.org |Perl 6| wrote:
OK, reading about it in Wiki, I see what it's supposed to do.This is described in depth in "Object oriented software construction" by Bertrand Meyer.
PRE - derived classes may weaken but not strengthen.So if it fails, but the preconditions of the same method on the base class pass, that means you wrote the precondition wrong. Rather than ignoring that, shouldn't it be an error?
--John