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!news3.google.com!news.glorb.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Structured exception information (task, ANEX E) Date: Mon, 22 Jan 2007 14:40:25 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <45acd36e$1@news.post.ch> <45b46521$1@news.post.ch> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1169494828 17742 192.74.137.71 (22 Jan 2007 19:40:28 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 22 Jan 2007 19:40:28 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:YmaE37kprQN/ttLHlFao+Jtlkj8= Xref: g2news2.google.com comp.lang.ada:8404 Date: 2007-01-22T14:40:25-05:00 List-Id: Martin Krischik writes: > Robert A Duff schrieb: >> Besides, shipping a String is no more efficient than shipping properly >> typed data. > > Realy? How about access types? C++ allows access types inside exceptions. The programmer has a choice: Don't use access types, or write streaming operations for types containing access types. The same is true for parameter passing. I don't see the problem. >> The 200-character limit was a mistake, by the way. It was based on >> fictitious implementation difficulties. Ada already has functions >> that return results whose size is not known at the call site (e.g. >> "return String"). The same memory-management techniques would apply to >> arbitrary-sized exception occurrences. > > And it is optional - a implementation is free to do it better. True, but that's not much help to the Ada programmer -- 200 is all you can count on. I'm not a big fan of optional features... - Bob