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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d303864ae4c70ad X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-11 06:22:06 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: exception parameters Date: 11 Apr 2004 09:20:10 -0400 Organization: Cuivre, Argent, Or Message-ID: References: <5ad0dd8a.0404090512.15af2908@posting.google.com> <5ad0dd8a.0404091828.6e79bb4e@posting.google.com> <5ad0dd8a.0404100735.7b2a8317@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1081689631 35210 212.85.156.195 (11 Apr 2004 13:20:31 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sun, 11 Apr 2004 13:20:31 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:6977 Date: 2004-04-11T09:20:10-04:00 Georg Bauhaus writes: > Wojtek Narczynski wrote: > : raise Bang( Hard, Urgent, -1); > > Absent tasks, if I jump long with parameters, doesn't this parameter > passing mechanism for "exceptional gotos" create a situation where > program flow is just as hard to follow, or even more so because > the tasking protocol won't be taken into account? Yes, it could be abused. But there are places where it would be useful. For example, I'm working on a database GUI. The low-level database interface raises Database_Error with a string parameter. I have to parse the string to get the actual database error code. It would be simpler, and actually clearer, if the error code were avaialble as a parameter. I understand there are lots of difficult implementation issues with general exception parameters, and it can certainly be carried too far. Ada allows one string parameter for exceptions. If it also allowed one integer parameter, that might be a nice compromise :). -- -- Stephe