From: "Theodore E. Dennison" <dennison@escmail.mmc.orl.com>
Subject: Re: Standard packages
Date: 30 Jan 1995 18:38:50 GMT
Date: 1995-01-30T18:38:50+00:00 [thread overview]
Message-ID: <3gjbnq$1he@theopolis.orl.mmc.com> (raw)
In-Reply-To: 3g7821$kjh@newsflash.concordia.ca
p_quinn@ECE.Concordia.CA (Paul Quinn) wrote:
>
>
> I just started programming in ADA. My major problem is that the text book
> for my course (Programming in Ada by Barnes) doesn't have a list
> of the standard packages. I keep wasting my time looking for the
> packages. Right now I need that package to do mod in integers.
>
>
> I was wondering if anyone know a place where I can get a list of standard
> packages? Does GNAT support all the standard packages that are
> used?
>
Uhh, are you talking about doing something like:
...
Num_Candybars : integer := 20;
begin
if (Num_Candybars mod 4 = 1) then
...
you ALWAYS have visibility to the "mod" operation (for INTEGER).
let me repeat:
You ALWAYS have visibility to the "mod" operation (for integer).
I suspect you have some kind of "type"ing problem. For example
the following is NOT legal:
...
Num_Candybars : integer := 20;
type Camshaft_Count is new integer;
Num_Camshafts : Camshaft_Count := 4;
begin
if (Num_Candybars mod Num_Camshafts = 3) then
...
"mod"ing Candybars to Camshafts is like comparing apples to oranges
:-)
HaHaHa. I kill me!
T.E.D.
T.E.D.
next prev parent reply other threads:[~1995-01-30 18:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-01-26 4:22 Standard packages Paul Quinn
1995-01-30 18:38 ` Theodore E. Dennison [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-19 20:18 Standard Packages Jason King
2001-04-19 20:51 ` Ted Dennison
2001-04-20 18:34 ` Laurent Guerby
2001-04-20 19:29 ` chris.danx
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox