comp.lang.ada
 help / color / mirror / Atom feed
* enumeration_io: get error
@ 2002-06-15 21:06 Gino POLIDO
  2002-06-15 22:26 ` R. Tim Coslet
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Gino POLIDO @ 2002-06-15 21:06 UTC (permalink / raw)


Look at this. If you get "*" or another no alpha numeric character, there is
a loop and it raises a storagr_error.
How to do?

Thks

---------------------------------
package Mytype is

type Tmytype is (a,b,c);

end Mytype;

with Mytype;
with ada.text_io;

package Enumeration_Tmytype is new
ada.text_io.enumeration_io(Mytype.Tmytype);

with Mytype;
with Enumeration_Tmytype;
with ada.text_io;

procedure tests is
 input:Mytype.Tmytype;
begin
 for i in 1..4 loop
  ada.text_io.put("Choose(a,b, or c):");
  enumeration_Tmytype.get(input);
 end loop;

exception
 when others =>
  tests;
end tests;






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

end of thread, other threads:[~2002-06-16 19:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-15 21:06 enumeration_io: get error Gino POLIDO
2002-06-15 22:26 ` R. Tim Coslet
2002-06-15 23:10   ` Gino POLIDO
2002-06-15 23:54 ` sk
     [not found] ` <3D0BD39B.FED8A0E4@myob.com>
2002-06-16  0:00   ` sk
2002-06-16  2:12 ` Jeffrey Carter
2002-06-16 19:59   ` sk

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