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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,86c750b8474bf6d5 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!m36g2000hse.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: About String Date: Sun, 8 Jun 2008 13:51:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <484ABED3.8040909@obry.net> <484b802a$0$23844$4f793bc4@news.tdc.fi> NNTP-Posting-Host: 85.3.228.2 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1212958267 23784 127.0.0.1 (8 Jun 2008 20:51:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 8 Jun 2008 20:51:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m36g2000hse.googlegroups.com; posting-host=85.3.228.2; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:621 Date: 2008-06-08T13:51:07-07:00 List-Id: On 8 Cze, 20:32, Robert A Duff wrote: > I think it was a mistake to attach exception handlers > to declare blocks and procedures and so forth. Instead, > there should be a single statement for handling exceptions, > as in Java and other languages. Something like: > > handle > ... statements ... > exception > when ... => > ... > end; You did not state it explicitly, but I presume that you allow mixing declarations with executable code ("as in Java and other languages")? After all, with the possibility to initialize the new variable with arbitrarily complex expression (including function call), this is already the case and the whole declare-begin-end block is just reflecting some artificial separation. Get rid of this artificial separation and the problem of exceptions will be solved. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com