From: nobody@REPLAY.COM (Anonymous)
Subject: Re: And
Date: 1998/07/22
Date: 1998-07-22T00:00:00+00:00 [thread overview]
Message-ID: <199807221423.QAA21530@basement.replay.com> (raw)
In-Reply-To: 35B4EC27.1E7B@lmtas.lmco.com
On Tue, 21 Jul 1998 14:29:43 -0500, Scott Sheffield
<sheffieldsy@lmtas.lmco.com> wrote:
> I have a function that I am trying to convert for use on my PC using
> adagide :
>
> function "and" (l,r : in system.unsigned_word)
> return system.unsigned_word
> renames system."and";
> ...
This looks like Ada 83. Ada 83 did not have much in the way of support
for unsigned integer types and bitwise Boolean operations on integer
types, so this compiler vendor supplied one or more
implementation-defined unsigned type in System, with bitwise Boolean
operations on it/them.
Ada (95) now provides for modular (unsigned) types with bitwise Boolean
operations defined for them. You may replace System.Unsigned_Word with
your own modular type; however, if you need a type that relates in some
way to the underlying hardware, you might want to use the types in
Interfaces, called Unsigned_n. Most compilers will define Unsigned_8,
Unsigned_16, and Unsigned_32 if such types make sense for the hardware.
As a wild guess, the above is probably equivalent to:
function "and" (L, R : Interfaces.Unsigned_16)
return Interfaces.Unsigned_16 renames Interfaces."and";
Jeff Carter PGP:1024/440FBE21
My real e-mail address: ( carter @ innocon . com )
"I fart in your general direction."
Monty Python & the Holy Grail
Posted with Spam Hater - see
http://www.compulink.co.uk/~net-services/spam/
next prev parent reply other threads:[~1998-07-22 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-21 0:00 And Scott Sheffield
1998-07-22 0:00 ` Anonymous [this message]
1998-07-22 0:00 ` And Jerry van Dijk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox