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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9c9db81a63ddf1fe X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: extended membership tests (branch) Date: Thu, 31 Mar 2011 13:58:12 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <7dc23d58-4a48-4444-90cd-7f9786b19aad@i14g2000yqe.googlegroups.com> <4d94aba4$0$7656$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1301594292 4222 192.74.137.71 (31 Mar 2011 17:58:12 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 31 Mar 2011 17:58:12 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:uZ4ZuKRbWbIqPLAXZ7qjwEqkZHo= Xref: g2news2.google.com comp.lang.ada:19597 Date: 2011-03-31T13:58:12-04:00 List-Id: Georg Bauhaus writes: > I can't answer, but started wondering how this will > have to be interpreted: > > for b in b1 in b1 .. b1 loop > null; > end loop; That's a syntax error: gnatmake -gnat2012 -gnatl eg.adb gcc -c -gnat2012 -gnatl eg.adb GNAT Pro 6.5.0w (20110326) Copyright 1992-2011, Free Software Foundation, Inc. Compiling: eg.adb (source file time stamp: 2011-03-31 17:55:10) 1. procedure Eg is 2. begin 3. for B in B1 in B1 .. B1 loop | >>> missing "loop" 4. null; 5. end loop; 6. end Eg; 6 lines: 1 error gnatmake: "eg.adb" compilation error - Bob