From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Unsigned Integer Restraint Errors
Date: Mon, 12 Mar 2007 22:13:24 +0100
Date: 2007-03-12T22:13:21+01:00 [thread overview]
Message-ID: <yh6w43t0390j.1cpwrjykzcrv5.dlg@40tude.net> (raw)
In-Reply-To: 33541213.DqVU86oi7x@linux1.krischik.com
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
next prev parent reply other threads:[~2007-03-12 21:13 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-12 15:07 Unsigned Integer Restraint Errors frikk
2007-03-12 16:27 ` Georg Bauhaus
2007-03-12 17:17 ` Adam Beneschan
2007-03-12 17:23 ` Adam Beneschan
2007-03-12 18:11 ` frikk
2007-03-12 20:00 ` frikk
2007-03-12 20:07 ` Adam Beneschan
2007-03-12 18:00 ` Dmitry A. Kazakov
2007-03-12 19:00 ` Martin Krischik
2007-03-12 21:13 ` Dmitry A. Kazakov [this message]
2007-03-12 19:13 ` frikk
2007-03-12 19:22 ` Randy Brukardt
2007-03-13 3:13 ` Jeffrey R. Carter
2007-03-13 3:00 ` Randy Brukardt
2007-03-13 12:09 ` frikk
2007-03-13 14:58 ` frikk
2007-03-13 15:31 ` frikk
2007-03-13 15:59 ` Robert A Duff
2007-03-13 16:18 ` Dmitry A. Kazakov
2007-03-13 16:21 ` Jeffrey R. Carter
2007-03-13 16:04 ` Adam Beneschan
2007-03-13 16:41 ` Adam Beneschan
2007-03-13 16:42 ` Adam Beneschan
2007-03-14 14:06 ` frikk
2007-03-13 17:23 ` Dmitry A. Kazakov
2007-03-13 17:31 ` Adam Beneschan
2007-03-14 0:54 ` Jeffrey R. Carter
2007-03-16 13:38 ` frikk
2007-03-13 16:16 ` Jeffrey R. Carter
2007-03-12 21:04 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox