comp.lang.ada
 help / color / mirror / Atom feed
From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: Elemantary Ada question
Date: 2000/11/28
Date: 2000-11-28T00:00:00+00:00	[thread overview]
Message-ID: <slrn927csr.tq.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 900bgt$i6t$1@news.uit.no

* Reinert Korsnes wrote:
>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 ?

There are two identical terms in the same namespace.

What should 'if A = A then ...' mean? How to determine the Float value and
the enumeration constant?

  type E1 is (A, B, C);
can be assumed as
  type E1 is range 1 .. 3;
  A : constant E1 := 1;
  B : constant E1 := 2;
  C : constant E1 := 3;

-- 
	      http://www.tm.oneiros.de/calendar/2001/index.html




  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 ` Robert A Duff
2000-11-28  0:00 ` Lutz Donnerhacke
2000-11-28  0:00   ` Reinert Korsnes
2000-11-28  0:00     ` Lutz Donnerhacke [this message]
2000-11-28  0:00     ` Mats Weber
2000-11-28  0:00     ` Ted Dennison
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