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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4a1b472243fcf98 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!falcon.america.net!eagle.america.net.POSTED!not-for-mail From: Larry Hazel User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada problem References: <22f5260.0411141547.1355d0d1@posting.google.com> In-Reply-To: <22f5260.0411141547.1355d0d1@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 14 Nov 2004 19:08:01 -0600 NNTP-Posting-Host: 66.0.32.41 X-Trace: eagle.america.net 1100480863 66.0.32.41 (Sun, 14 Nov 2004 20:07:43 EST) NNTP-Posting-Date: Sun, 14 Nov 2004 20:07:43 EST Organization: 24hoursupport.com Xref: g2news1.google.com comp.lang.ada:6195 Date: 2004-11-14T19:08:01-06:00 List-Id: ada_newbie wrote: > Hello, > > i'm new to ada and i have a simple problem. I don't know how to get an > output of enumeration types. The following example doesn't work: > > > with Ada.Text_IO; > > procedure values is > > type Days is (monday, tuesday, wednesday); > > begin Ada.Text_IO.Put(Days'Image(Days'First)); > end values;