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-Thread: 103376,9ce828272f314121 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 18 Apr 2005 22:02:57 -0500 From: "Steve" Newsgroups: comp.lang.ada References: Subject: Re: output of enumeration types Date: Mon, 18 Apr 2005 20:04:56 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: <1Y6dnb6-vat86fnfRVn-iA@comcast.com> NNTP-Posting-Host: 24.22.63.157 X-Trace: sv3-04LZGEhCVIuZSGMIsIe0U14BsjiPA27SPMWUaKA1cwyDrf2QK9aJqEf/AZK4XBKjw6Fu0dHMJXaKYHX!VAKCrNB664BZ2hNyxs4Pwpww6AF4RdgZNtd84yWQ0btOPvtBN/lz8pM8fAZN X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:10557 Date: 2005-04-18T20:04:56-07:00 List-Id: It doesn't look that tedious to me: function To_String( Value : Roman_Number ) return String is result : String( Value'range ); begin for idx in Value'range loop result( idx ) := Roman_Digit'Image( Value( idx ) )(2); end loop; return result; end To_String; ... and please say that this is not a homework assignment. Steve (The Duck) "Staszek Goldstein" wrote in message news:d41ars$3eo$1@achot.icm.edu.pl... >I have got the following problem: having defined > type roman_digit is ('I','V','X','L','C','D','M'); > type roman_number is array (positive range <>) of roman_digit; > I want to print, say, "MMV" of type roman_number on the standard output. I > have no idea how to do it, at least without tedious step-by-step > conversion routines between roman numbers and strings.Can you help me? >