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 Path: g2news1.google.com!news4.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!noris.net!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="iso-8859-2" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1gv02c5pwbx1e$.sugmeiie353z$.dlg@40tude.net> Date: Tue, 19 Apr 2005 10:11:18 +0200 Message-ID: <15pwvzp0ylx7c.10c1ko7bmvzxs$.dlg@40tude.net> NNTP-Posting-Date: 19 Apr 2005 10:10:47 MEST NNTP-Posting-Host: 78262f5e.newsread2.arcor-online.net X-Trace: DXC=9@kKGhJbg]oTE46CRO0njmQ5U85hF6f;djW\KbG]kaMh:cmYYm_h3\cK=fR<:5ghh`WRXZ37ga[7jn919Q4_`VjiB8=X\UUgbkd X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:10563 Date: 2005-04-19T10:10:47+02:00 List-Id: On Tue, 19 Apr 2005 09:49:41 +0200, Szymon Guz wrote: > Dmitry A. Kazakov napisa�(a): >> 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; > > Well, I can't see your point, why 1..3999 ? Because Romans knew neither zero nor negative numbers and 3999 is the maximal number that can be represented using I,V,X,L,C,D,M: 3999=MMMCMXCIX. Honestly I don't know how they managed to build a great empire with that! (:-)) [ http://www.dmitry-kazakov.de/ada/strings_edit.htm contains an implementation of Roman numbers I/O. ] -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de