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,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,361005071ae51d99 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-07 06:06:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3C8773D5.21E3ECBE@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Future with Ada References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 07 Mar 2002 09:06:13 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 1015509997 151.168.144.162 (Thu, 07 Mar 2002 09:06:37 EST) NNTP-Posting-Date: Thu, 07 Mar 2002 09:06:37 EST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:20899 Date: 2002-03-07T09:06:13-05:00 List-Id: Christoph Grein wrote: > > > procedure X is > > > > -- pages of declarations > > > > begin X: -- compiler would reject any other name, > > -- thereby proofing nesting level > > But this is a recursive call! Nogo No-no nowhere... No, it's not. The mark is a colon, not a semicolon. But the confusion is good reason to omit the colon. And it may indeed be a major complication for a compiler to distinguish: procedure X is begin X -- is this a label or poorly formatted -- infinite recursion with the semicolon -- forgotten? if .... So let me make an alternate proposal: procedure X is -- declarations begin (X) -- statements exception (X) when ...... -- statements end X; And the compiler would check the nesting level for you on each optional (X) -- Wes Groleau http://freepages.rootsweb.com/~wgroleau