comp.lang.ada
 help / color / mirror / Atom feed
* Elemantary Ada question
@ 2000-11-28  0:00 Reinert Korsnes
  2000-11-28  0:00 ` Lutz Donnerhacke
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Reinert Korsnes @ 2000-11-28  0:00 UTC (permalink / raw)


Hi,

Given the following simple test program:

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;

Can anybody explain me why "A : Float" conflicts
with the declaration:  "type E1 is (a, b, c);" ?

reinert

-- 
Norwegian Polar Institute
Polar Environment Center
N-9296 Tromso
Norway
Fax: +47 77750501

http://geophys.npolar.no/~reinert/personal.html




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-11-28  0:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-28  0:00 Elemantary Ada question Reinert Korsnes
2000-11-28  0:00 ` Lutz Donnerhacke
2000-11-28  0:00   ` Reinert Korsnes
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox