From: Anatoly Chernyshev <rhezusfactor@yahoo.com>
Subject: Re: Extended modal types
Date: Wed, 29 May 2002 10:20:08 -0500
Date: 2002-05-29T10:20:08-05:00 [thread overview]
Message-ID: <3CF4F1A8.6A491F3@yahoo.com> (raw)
In-Reply-To: 3CEDFF90.B94D7E32@yahoo.com
Well, this post got a surprising response, so I have to make some
explanation on that.
First, I beg your pardon for probable confusing of the terms. I did not
think of modular types as a computer scientist, instead I just thought of
some �cyclical� integer type, which will never overflow even being added
with an �out of range� number. I found this type should mostly be the
modular alike.
I see the usefulness of this type is in arrays dimensions � when one goes
beyond the array boundary it automatically gets to the opposite side.
Arrays with such a property known as �periodic boundary condition� are
widely used in molecular mechanics and cellular automata (Conway�s Game of
Life, for instance). I had not found those types in packages available to
public, so I decided to write my own.
Actually, the package for deal with such �extended modular� types merely is
a service one aimed for further development of package(s) for periodical
boundary condition arrays.
Anatoly Chernyshev
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
>
next prev parent reply other threads:[~2002-05-29 15:20 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
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 [this message]
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