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:47:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!news-FFM2.ecrc.net!newsfeed.vmunix.org!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!not-for-mail From: Peter Hermann Newsgroups: comp.lang.ada Subject: Re: Quality systems Date: Wed, 21 May 2003 15:47:14 +0000 (UTC) Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: References: <2Hwya.674034$Zo.143424@sccrnsc03> NNTP-Posting-Host: sinus.csv.ica.uni-stuttgart.de X-Trace: news.uni-stuttgart.de 1053532034 1397 129.69.118.70 (21 May 2003 15:47:14 GMT) X-Complaints-To: news@news.uni-stuttgart.de NNTP-Posting-Date: Wed, 21 May 2003 15:47:14 +0000 (UTC) User-Agent: tin/1.5.12-20020311 ("Toxicity") (UNIX) (Linux/2.4.20-ica2-k7-xfs (i686)) Xref: archiver1.google.com comp.lang.ada:37588 Date: 2003-05-21T15:47:14+00:00 List-Id: Robert A Duff wrote: > 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 I very much appreciate the practical comfort given with the "extended" mod type feature and wont miss it. There are many examples where Ada makes live easier i.e. where the compiler makes the job instead of the programer, e.g. the fixed real types when floating point cpu missing, e.g. the numeric type conversion towards the nearest neighbor (model number, think of e.g. float2pixel), and several dozen other new benefits. This one is a benefit. -- --Peter Hermann(49)0711-685-3611 fax3758 ica2ph@csv.ica.uni-stuttgart.de --Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen --http://www.csv.ica.uni-stuttgart.de/homes/ph/ --Team Ada: "C'mon people let the world begin" (Paul McCartney)