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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-22 10:19:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!dialin-145-254-038-112.arcor-ip.NET!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Quality systems Date: Thu, 22 May 2003 19:21:46 +0200 Organization: At home Message-ID: References: <9fa75d42.0305141747.5680c577@posting.google.com> <4W%xa.28765$cK5.11964@nwrdny02.gnilink.net> <1053353256.804734@master.nyc.kbcfp.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: dialin-145-254-038-112.arcor-ip.net (145.254.38.112) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1053623969 338872 145.254.38.112 (16 [77047]) User-Agent: KNode/0.7.1 Xref: archiver1.google.com comp.lang.ada:37651 Date: 2003-05-22T19:21:46+02:00 List-Id: Peter Hermann wrote: > Dmitry A. Kazakov wrote: >> that modular types are associated with unsigned numbers. In my view it >> would be more consistent to have: >> type X is mod range -2..4; > > oh noo! please dont open that can of worms with all its intricacies. Why? Bit-wise operations should be disallowed anyway, I think it is a common feeling. The rest is well-defined: For any @ = {+, -, *, /} the corresponding operation of a type T can be defined as ((a @ b) mod (T'Last - T'First + 1)) + T'First BTW, I think that ranges should have other semantic for modular types than now: for I in T'(4)..T'(0) loop -- should go through 4, -2, -1, 0 -- Regards, Dmitry A. Kazakov www.dmitry-kazakov.de