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,b2923d60cb81694b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Unsigned Integer Restraint Errors Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.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: <1173712032.183064.264340@8g2000cwh.googlegroups.com> <33541213.DqVU86oi7x@linux1.krischik.com> Date: Mon, 12 Mar 2007 22:13:24 +0100 Message-ID: NNTP-Posting-Date: 12 Mar 2007 22:13:21 CET NNTP-Posting-Host: a14ff041.newsspool1.arcor-online.net X-Trace: DXC=6_iTc_Lk1CH0YVY]kmLTlDic==]BZ:afN4Fo<]lROoRAFl8W>\BH3YBk3k>@01`WeHDNcfSJ;bb[EIRnRBaCd On Mon, 12 Mar 2007 20:00:51 +0100, Martin Krischik wrote: > Dmitry A. Kazakov wrote: > >> 1. Modular types cannot overflow per mathematical definition of. They form >> a ring closed for +,-,*,/ (except zero divide). > > type Byte is mod 256; > subtype Half_Byte is Byte range 0 .. 127; OK, to be pedantic, a subtype of a modular type is not necessary a "modular" type, because it may lose some properties of. Similarly a subtype of an integer might be not an "integer" because it might lack the null element, negative inverses etc. These are classical examples of LSP problematic. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de