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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c40a80666be78948 X-Google-Attributes: gid103376,public From: reinert@ola.npolar.no (Reinert Korsnes) Subject: Re: Elemantary Ada question Date: 2000/11/28 Message-ID: <900bgt$i6t$1@news.uit.no>#1/1 X-Deja-AN: 698665744 Distribution: world References: <9008uq$hmi$1@news.uit.no> X-Complaints-To: usenet@news.uit.no X-Trace: news.uit.no 975417693 18653 158.39.64.31 (28 Nov 2000 13:21:33 GMT) Organization: University of Troms� Reply-To: Reinert.Korsnes@npolar.no NNTP-Posting-Date: 28 Nov 2000 13:21:33 GMT Newsgroups: comp.lang.ada Date: 2000-11-28T13:21:33+00:00 List-Id: In article , lutz@iks-jena.de (Lutz Donnerhacke) writes: >* Reinert Korsnes wrote: >>Can anybody explain me why "A : Float" conflicts >>with the declaration: "type E1 is (a, b, c);" ? > >Ada is case-in-sensitive. Ok, let A be a possible value of a variable of type E1 (let say "type E1 is (A, B, C)"). And A is a variable name. Where is the conflict ? -----------------the test program is as follows (repeating): with Text_IO; use Text_IO; procedure Atest1 is type E1 is (a, b, c); package E1_Io is new Text_IO.Enumeration_Io (E1); use E1_Io; A : Float; begin Put(E1'First); end Atest1; reinert > >-- > http://www.tm.oneiros.de/calendar/2001/index.html -- Norwegian Polar Institute Polar Environment Center N-9296 Tromso Norway Fax: +47 77750501 http://geophys.npolar.no/~reinert/personal.html