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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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!news4.google.com!feeder.news-service.com!feeder1.cambrium.nl!feed.tweaknews.nl!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: About String Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <484ABED3.8040909@obry.net> <484b802a$0$23844$4f793bc4@news.tdc.fi> Date: Mon, 9 Jun 2008 09:14:30 +0200 Message-ID: NNTP-Posting-Date: 09 Jun 2008 09:14:17 CEST NNTP-Posting-Host: 08386668.newsspool1.arcor-online.net X-Trace: DXC=UAFFNNPF6PAgj[ZPFj7ehOic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBm_EXRKFW7dG[6LHn;2LCVN7enW;^6ZC`DIXm65S@:3>O79Lo>J[UI?@ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:624 Date: 2008-06-09T09:14:17+02:00 List-Id: On Sun, 08 Jun 2008 17:19:11 -0400, Robert A Duff wrote: > Maciej Sobczak writes: > >> 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. > > I agree. I suppose it comes from Pascal, where declarations and > executable code are completely separated. It makes no sense in > Ada, where declarations are just as executable as statements. I disagree. I think it does make sense because it clearly defines the scope of the declared variable. Expression (result) /= named object. And reversely, if you don't need the variable, you are free to put expressions anywhere outside the declaration part. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de