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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: body stub not allowed in inner scope Date: Wed, 28 Feb 2018 17:32:27 -0600 Organization: JSA Research & Innovation Message-ID: References: Injection-Date: Wed, 28 Feb 2018 23:32:28 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="32171"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:50726 Date: 2018-02-28T17:32:27-06:00 List-Id: "Mehdi Saada" <00120260a@gmail.com> wrote in message news:ace36299-15fa-478f-9a9f-5484b9bfc92f@googlegroups.com... ... > Whereas I wanted this, because SEPARTE... and ANALYSE... NEED to know > about LINE, but can't be declared in a block. > > while_loop > declare > LINE : STRING := PROCESSING(GET_LINE); > BLABLA is separate; > begin > BLABLA; > end; > end loop; This case would *never* be allowed, because there is no name for the blocks here. You'd have to give the block and loop a name for this to be meaningful. But it simply isn't worth the hassle -- don't modern IDEs allow collapsing the code in cases like this? (I don't know, I've never used a modern IDE beyond a few accidental openings of GPS. If they don't, why even bother with an IDE?) Randy.