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,b8b8a54001adc4d2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Possible Ada deficiency? (goto) Date: Sat, 15 Jan 2005 18:58:35 +0100 Organization: cbb software GmbH Message-ID: <18fnarb48z32c$.1feg4z2euai5i$.dlg@40tude.net> References: <1104516913.718856.94090@z14g2000cwz.googlegroups.com> <1104544963.930877.75170@c13g2000cwb.googlegroups.com> <1104595073.731663.180100@c13g2000cwb.googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net HjuYopZmU9sq2MxoN88mVwDd48L4mSAnhzVuondCFUGd/bWls= User-Agent: 40tude_Dialog/2.0.14.1 Xref: g2news1.google.com comp.lang.ada:7823 Date: 2005-01-15T18:58:35+01:00 List-Id: On 15 Jan 2005 12:34:59 -0500, Robert A Duff wrote: > procedure P is > --(1) > begin > for Mumble in 1..10 loop > <> --(2) > null; > end loop; > end P; > > Here's why the above is illegal: There is an implicit declaration of > label Mumble at that place marked "--(1)". Why not in the loop's body? After all one cannot jump into the loop body? > At the place marked "--(2)", > this this declaration is not directly visible, because it is hidden by > the loop parameter Mumble. Thus, the reference to Mumble at "--(2)" > is illegal. That's just plain weird. Interesting is that labels, types and objects share the same name space. For labels it looks as if somebody planned to implement FORTRAN's: ASSIGN 100 K ... GOTO K (I like that language! (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de