develooper Front page | perl.perl6.language | Postings from January 2002

Re: Some Apocalypse 4 exception handling questions.

Thread Previous | Thread Next
From:
Larry Wall
Date:
January 23, 2002 13:56
Subject:
Re: Some Apocalypse 4 exception handling questions.
Message ID:
200201232152.NAA17838@wall.org
David Whipp writes:
: Peter Haworth [mailto:pmh@edison.ioppublishing.com] wrote:
: > This is all very sensible, and I completely agree with it. 
: > However, don't we
: > need some restrictions on what can go in PRE and POST blocks 
: > to ensure that they are still valid in inherited methods?
: 
: 
: There's another issue: sometimes we don't want to inherit PRE
: conditions. DBC allows a derived method to strengthen (add)
: post-conditions; but to weaken (remove) preconditions. I
: haven't (yet) seen how this weakening would be accomplished.

Damian told me you just handle that by ORing together the
preconditions, but ANDing the postconditions.

: Perhaps the mechanism that controls inheritance of
: preconditions may have a more general applicability?

Underneath it's all just block properties that happen to be closures.
We can do whatever we want with them--as long as we agree on the
definitions of "we" and "want".  Or at least agree to disagree such
that we keep out of each other's way.

Larry

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About