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=0.2 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, XPRIO_SHORT_SUBJ autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,78b2880bc7e78e39 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-19 10:56:28 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: RISC Date: Mon, 19 Mar 2001 13:48:14 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <995ka1$p8c$1@nh.pace.co.uk> References: <98tt7g$88h$1@nh.pace.co.uk> <995e4m$n90$1@nh.pace.co.uk> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 985027713 25868 136.170.200.133 (19 Mar 2001 18:48:33 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 19 Mar 2001 18:48:33 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: supernews.google.com comp.lang.ada:5865 Date: 2001-03-19T18:48:33+00:00 List-Id: Depends on perspective. A goto can goto *anywhere* in the code. (almost) An exception can only leap to certain well defined parts of the code with rather specific purposes. I can see your point - gotos have a single specific destination. (Unless you have the Cobol "alter" statement at work for you.) Exceptions can goto a variety of locations depending on context. My point was more from the static usage perspective in that exception handlers can't appear just anywhere and exceptions can't jump to just anywhere. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Robert A Duff" wrote in message news:wcc4rwp3b5j.fsf@world.std.com... > "Marin David Condic" writes: > > > Exceptions can be viewed as a sort of "limited/controlled goto" - and as > > such they can pose hazards to good software design. > > I'd say it's the other way around: goto's are more limited that raising > an exception, because with a goto, you can tell statically where you're > going to, whereas an exception is a goto to a dynamically determined > label. > > - Bob