From: "Marc A. Criley" <mcqada95@earthlink.net>
Subject: Re: Extended modal types
Date: Fri, 24 May 2002 11:38:08 GMT
Date: 2002-05-24T11:38:08+00:00 [thread overview]
Message-ID: <3CEE268A.237998EF@earthlink.net> (raw)
In-Reply-To: 3CEDFF90.B94D7E32@yahoo.com
Anatoly Chernyshev wrote:
>
> Once I have been introduced in Ada programming, I was very
> exciting about modular types. Later on it became evident to me that
> these types are rather limited, and one cannot use arbitrary modular
> range,
> for example, like -100..345. I didn't find any packages in the WWW that
> can
> deal with such "extended" modular variables, so I wrote my own.
> Anyone interested could pick it up at
> http://www.polarhome.com/~ada/ch_rings.zip
Hmmm, modular types are unsigned by design. So a "modular range" having
a negative lower bound doesn't really make any sense; it's no longer a
modular type. Though one can produce a package that provides operations
on an integer type that mimics some of the modular type behavior.
Marc A. Criley
Consultant
Quadrus Corporation
www.quadruscorp.com
next prev parent reply other threads:[~2002-05-24 11:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-24 8:53 Extended modal types Anatoly Chernyshev
2002-05-24 11:38 ` Marc A. Criley [this message]
2002-05-25 15:57 ` Robert Dewar
2002-05-25 18:06 ` Frank J. Lhota
2002-05-25 18:40 ` Florian Weimer
2002-05-25 21:56 ` David C. Hoos, Sr.
2002-05-27 4:57 ` Robert I. Eachus
2002-05-27 5:52 ` Florian Weimer
2002-05-27 23:47 ` Robert I. Eachus
2002-05-29 1:16 ` Robert Dewar
2002-05-29 2:31 ` Robert A Duff
2002-05-29 9:19 ` Dmitry A. Kazakov
2002-05-29 9:54 ` Robert Dewar
2002-05-29 15:20 ` Anatoly Chernyshev
2002-05-29 23:36 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox