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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news3.google.com!news.glorb.com!koehntopp.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: output of enumeration types Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Tue, 19 Apr 2005 09:31:05 +0200 Message-ID: <1gv02c5pwbx1e$.sugmeiie353z$.dlg@40tude.net> NNTP-Posting-Date: 19 Apr 2005 09:30:34 MEST NNTP-Posting-Host: 98fb8646.newsread4.arcor-online.net X-Trace: DXC=h>GT>iS9Y8SUEj^fn36YV^:ejgIfPPldTjW\KbG]kaMXliQbn6H@_EYh8OXaH5a2K^[6LHn;2LCV^7enW;^6ZC`T<=9bOTW=MN^ X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:10561 Date: 2005-04-19T09:30:34+02:00 List-Id: On Tue, 19 Apr 2005 00:04:04 +0200, Staszek Goldstein wrote: > 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; But Roman number is not an array of letters. As others have pointed out 'I' is not a digit. It can represent or not a decimal position depending on the context. For example in 'XIII', the "digits" are 'X' and 'III'. Anyway it should rather be: type Roman_Number is range 1..3999; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de