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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5fa303cecfab07f5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-18 06:28:49 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: prichtmyer@yahoo.com (Peter Richtmyer) Newsgroups: comp.lang.ada Subject: Re: Get Integer into Enumeration_IO doesn't work Date: 18 Nov 2002 06:28:49 -0800 Organization: http://groups.google.com/ Message-ID: <1b585154.0211180628.3a1b96a2@posting.google.com> References: NNTP-Posting-Host: 164.223.72.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1037629729 12999 127.0.0.1 (18 Nov 2002 14:28:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 18 Nov 2002 14:28:49 GMT Xref: archiver1.google.com comp.lang.ada:31043 Date: 2002-11-18T14:28:49+00:00 List-Id: "Grein, Christoph" wrote in message news:... > While Integer is a discrete type and therefore allowed as an actual parameter to > Text_IO.Enumeration_IO, this package is meant to be instantiated with > enumeration types only. In my experience (it may depend upon the compiler) the compiler would allow me to instantiate an integer-type with enumeration_io, but it would raise an exception on a *get*. Obviously, it would be better if the compiler caught the error when compiling. Obviously, it would be even better if I did not code the error :-) happy coding... Peter