From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f66d11aeda114c52 X-Google-Attributes: gid103376,public X-Google-Thread: fac41,f66d11aeda114c52 X-Google-Attributes: gidfac41,public From: "W. Wesley Groleau x4923" Subject: Re: Building blocks (Was: Design By Contract) Date: 1997/09/18 Message-ID: <3421A76F.4709@pseserv3.fw.hac.com>#1/1 X-Deja-AN: 273675854 Sender: usenet@most.fw.hac.com (News Administration) X-Nntp-Posting-Host: sparc01 References: <5v34m5$pl9$1@trumpet.uni-mannheim.de> <34215E3D.77AE@gsfc.nasa.gov> Organization: Hughes Defense Communications Newsgroups: comp.lang.ada,comp.lang.eiffel Date: 1997-09-18T00:00:00+00:00 List-Id: Stephen Leake wrote: > > Paul Johnson wrote: > > > > Ada allows the programmer to quietly ignore an exception and pretend > > that a routine succeeded when in fact it failed. This is wrong. > > I assume you are talking about: > begin > ... some code > exception > when others => > null; > end; > > which ignores exceptions. Usually, this is a bad idea. But sometimes, it > is essential. Consider the top level loop of a fail-safe system: Or, perhaps I know that the guy that wrote routine X sometimes raises exception Y AFTER X has already done the work I want. Why shouldn't I ignore exception Y in that case? > This is a general philosophy of Ada; provide the tools to do various > jobs. Don't force a programmer to do something because it's "good". Uh-oh. That sounds like an argument for a fan of C (Also sounds like the argument against forcing declaration before reference.) -- ---------------------------------------------------------------------- Wes Groleau, Hughes Defense Communications, Fort Wayne, IN USA Senior Software Engineer - AFATDS Tool-smith Wanna-be wwgrol AT pseserv3.fw.hac.com Don't send advertisements to this domain unless asked! All disk space on fw.hac.com hosts belongs to either Hughes Defense Communications or the United States government. Using email to store YOUR advertising on them is trespassing! ----------------------------------------------------------------------