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 Path: g2news1.google.com!news3.google.com!news.glorb.com!wn13feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: Sandro Magi Subject: Re: Ada problem Newsgroups: comp.lang.ada References: <22f5260.0411141547.1355d0d1@posting.google.com> User-Agent: KNode/0.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Message-ID: Date: Sun, 14 Nov 2004 20:15:20 -0500 NNTP-Posting-Host: 64.229.97.158 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1100481319 64.229.97.158 (Sun, 14 Nov 2004 20:15:19 EST) NNTP-Posting-Date: Sun, 14 Nov 2004 20:15:19 EST Organization: Bell Sympatico Xref: g2news1.google.com comp.lang.ada:6197 Date: 2004-11-14T20:15:20-05:00 List-Id: Or: with Ada.Text_IO.Enumeration_IO; procedure values is ��type�Days�is�(monday,�tuesday,�wednesday); ��package�Days_IO�is �����������������new�Ada.Text_IO.Enumeration_IO�(Days); begin ��Days_IO.Put(Days'First); end values; Larry Hazel wrote: > 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;