From: reinert@ola.npolar.no (Reinert Korsnes)
Subject: Re: Elemantary Ada question
Date: 2000/11/28
Date: 2000-11-28T13:21:33+00:00 [thread overview]
Message-ID: <900bgt$i6t$1@news.uit.no> (raw)
In-Reply-To: slrn927ai8.tq.lutz@taranis.iks-jena.de
In article <slrn927ai8.tq.lutz@taranis.iks-jena.de>,
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
next prev parent reply other threads:[~2000-11-28 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-28 0:00 Elemantary Ada question Reinert Korsnes
2000-11-28 0:00 ` Lutz Donnerhacke
2000-11-28 0:00 ` Reinert Korsnes [this message]
2000-11-28 0:00 ` Ted Dennison
2000-11-28 0:00 ` Mats Weber
2000-11-28 0:00 ` Lutz Donnerhacke
2000-11-28 0:00 ` Robert A Duff
2000-11-28 0:00 ` Scott Ingram
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox