From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d7ee82751f6043ae X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-30 10:38:50 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!csn!boulder!news.coop.net!news.den.mmc.com!iplmail.orl.mmc.com!usenet From: "Theodore E. Dennison" Newsgroups: comp.lang.ada Subject: Re: Standard packages Date: 30 Jan 1995 18:38:50 GMT Organization: IPL InterNetNews site Message-ID: <3gjbnq$1he@theopolis.orl.mmc.com> References: <3g7821$kjh@newsflash.concordia.ca> NNTP-Posting-Host: milkyway.orl.mmc.com Date: 1995-01-30T18:38:50+00:00 List-Id: 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.