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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,239b92bbdaf8d8d3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-02 03:13:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!news.m-online.net!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Array of exception Date: Tue, 2 Oct 2001 10:13:28 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1002017608 18965 217.17.192.37 (2 Oct 2001 10:13:28 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Tue, 2 Oct 2001 10:13:28 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:13612 Date: 2001-10-02T10:13:28+00:00 List-Id: * maa@liacc.up.pt wrote: >Quoting Lutz Donnerhacke : >> Is it possible to define an array of exceptions? I do not get it. >> (subtype required) > >Package Ada.Exceptions provides "regular" types associated with exceptions >viz. Exception_Id and Exception_Occurrence. Attribute 'Identity gives the >Id of an exception. Yep. Known and didn't remembered last evening. In the meantime the problem changed slightly, because the inband signaling range is not continious. *GNA* Using Exception_Id and Raise_Expression require me to rewrite the whole CASE into an explicit array so I do not shorten the source code anyway. Only the produced asm code can be modified by moving the jump table into the data segment. *Hmm*