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-Thread: 103376,ebdc5ed511896a0 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.60.17 Path: g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nntpfeed.proxad.net!news.side3.eu!news.netfinity.fr!club-internet.fr!feedme-small.clubint.net!news.astraweb.com!border1.a.newsrouter.astraweb.com!newsfeed101.telia.com!nf02.dk.telia.net!newsfeed.bahnhof.se!194.100.2.58.MISMATCH!newsfeed1.fi.sn.net!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Mon, 03 Sep 2007 13:42:21 +0300 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: urgent question - generics References: <1188809249.040351.100160@r29g2000hsg.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <46dbe4ac$0$3196$39db0f71@news.song.fi> Organization: TDC Song Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1188816044 news.song.fi 3196 81.17.205.61:32916 X-Complaints-To: abuse@song.fi Xref: g2news2.google.com comp.lang.ada:1676 Date: 2007-09-03T13:42:21+03:00 List-Id: anon wrote: > with Ada.text_IO ; > with System ; > > procedure zzero is > > function function_0 ( func : System.Address ; Data : Float ) > return float is > > procedure tst ; > pragma Import ( Ada, tst ) ; > for tst'address use func ; I hope that the original poster understands that "anon's" answer is not correct. I agree that the newsgroup should not supply ready-made answers to homework or examination questions, but we should not supply false answers either. To the OP: surely your study materials contain examples of generic functions or other generic components. Can you say more specifically what you don't understand in those examples, or in the question you are trying to solve? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .