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=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32c37aca7f5cedbb,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-15 14:04:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!proxad.net!wanadoo.fr!not-for-mail From: "Gino POLIDO" Newsgroups: comp.lang.ada Subject: enumeration_io: get error Date: Sat, 15 Jun 2002 23:06:16 +0200 Organization: Wanadoo, l'internet avec France Telecom Message-ID: NNTP-Posting-Host: ca-sqy-3-22.abo.wanadoo.fr X-Trace: wanadoo.fr 1024175061 1186 80.8.56.22 (15 Jun 2002 21:04:21 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 15 Jun 2002 21:04:21 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:26037 Date: 2002-06-15T21:04:21+00:00 List-Id: 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;