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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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 Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn11feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: urgent question - generics Reply-To: anon@anon.org (anon) References: <1188809249.040351.100160@r29g2000hsg.googlegroups.com> <46dbe4ac$0$3196$39db0f71@news.song.fi> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Mon, 03 Sep 2007 11:24:24 GMT NNTP-Posting-Host: 12.65.174.11 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1188818664 12.65.174.11 (Mon, 03 Sep 2007 11:24:24 GMT) NNTP-Posting-Date: Mon, 03 Sep 2007 11:24:24 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:1683 Date: 2007-09-03T11:24:24+00:00 List-Id: Dude. He can learn generic on his own! That why my code did not include any generic code. If you really look at the code you would have see that. Plus, If the guy looks that the numeric packages in GNAT he will probability find exactly what he wants, in less than 5 minutes. GNAT seams to have ever type of question answered in their source code. Even if its bad programmimg. And in some places GNAT source code even point out that its bad programming. What I answered was, one way to access the procedure once program called the function. And my code works in GNAT Ada. It works for both a procedure with or without a parameter list. In <46dbe4ac$0$3196$39db0f71@news.song.fi>, Niklas Holsti writes: >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 > . @ .