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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Understanding generic package functions Date: Tue, 3 Nov 2015 00:59:33 -0600 Organization: JSA Research & Innovation Message-ID: References: NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1446533974 17942 24.196.82.226 (3 Nov 2015 06:59:34 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 3 Nov 2015 06:59:34 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: news.eternal-september.org comp.lang.ada:28190 Date: 2015-11-03T00:59:33-06:00 List-Id: "Nick Gordon" wrote in message news:cb181260-a5d3-4b5b-9a40-c925f7100b93@googlegroups.com... ... > My thought is that I have to create a new instance of the > Generic_Elementary_Functions > package, but I'm not sure if that's correct, or how to do that. Jeff gave you the long answer, which is better for most purposes. Specifically for type Float (which you really should avoid itself, preferring to use types of your own definition), Ada offers a pre-instantiated version of the package called "Ada.Numerics.Elementary_Functions", so you could use that instead. > In general, I'm noticing that the learning curve for Ada is steep, and > there are not > terribly many "quick references" for the language. Ada Distilled is the best "quick reference", but there's really nothing quick about using Ada. It's a professional level tool and thus it has lots of things that you need to know. (Consider the difference between using a home copy machine and a professional offset printing press.) Randy.