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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-21 08:11:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Quality systems (Was: Using Ada for device drivers? (Was: the Ada mandate, and why it collapsed and died)) Date: 21 May 2003 11:11:06 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <2Hwya.674034$Zo.143424@sccrnsc03> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1053529866 19583 199.172.62.241 (21 May 2003 15:11:06 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 21 May 2003 15:11:06 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:37585 Date: 2003-05-21T11:11:06-04:00 List-Id: tmoran@acm.org writes: > > -- non-binary modulii are an unnecessary > > frill, and should have been left out of Ada. > But handy for instance as indexes for card decks or tables with 'length > a power of ten rather than a power of two. I don't agree. I think for *those* kinds of uses, one should use a signed type, and write the "mod" operations explicitly where they occur. Having a type that magically does a mod operation every time you do arithmetic is not an aid to readability. - Bob