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-Thread: 103376,699cc914522aa7c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Tue, 16 Jan 2007 17:06:41 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <45acd36e$1@news.post.ch> Subject: Re: Structured exception information (task, ANEX E) Date: Tue, 16 Jan 2007 17:07:37 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-XJDcF+X95hpdar6juQdTW9pnP/9qI0+DQmre2Gw2kDkczzJtp57BLzeU/V/xtWisMLG0QdUghdS4c5J!Yj7Pwas/E1RqB5Mhoh1ZCHJ4Aeylxo6cTG5NhHRWhoYygOBOyHNG2D8plVMudaIoVExq7IWefcpt!fZkowBuMCI4DVQ== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:8207 Date: 2007-01-16T17:07:37-06:00 List-Id: "Martin Krischik" wrote in message news:45acd36e$1@news.post.ch... > Maciej Sobczak schrieb: > > > Yes, I'm asking for "throwing objects", in the C++ parlance. > > > > How to do this in Ada? > > If I cannot - how to solve this design problem? > > I believe this was skipped in Ada because of ANEX E and task types. You > must understand that Ada exceptions quite often propagated across thread > borders and sometimes - if ANEX E is implemented - over a network > connections to another computer. > > I do not say this is impossible but it could be quite expensive > performance wise. Possibly, but that's easily solved (now) by requiring any such types to support external streaming. The problem was that we didn't have the concept of external streaming at the time that we considered extra information for exceptions (the language had it, but it wasn't defined consistently and it didn't have a name). I suspect it would be quite a bit easier to define now than it was in 2002 (although there would certainly be some gotcha). Randy.