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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!postnews.google.com!r34g2000hsd.googlegroups.com!not-for-mail From: shoshanister@gmail.com Newsgroups: comp.lang.ada Subject: Re: urgent question - generics Date: Mon, 03 Sep 2007 04:36:33 -0700 Organization: http://groups.google.com Message-ID: <1188819393.588005.23850@r34g2000hsd.googlegroups.com> References: <1188809249.040351.100160@r29g2000hsg.googlegroups.com> <46dbe4ac$0$3196$39db0f71@news.song.fi> NNTP-Posting-Host: 89.138.8.190 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1188819393 16855 127.0.0.1 (3 Sep 2007 11:36:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 3 Sep 2007 11:36:33 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: r34g2000hsd.googlegroups.com; posting-host=89.138.8.190; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1685 Date: 2007-09-03T04:36:33-07:00 List-Id: On Sep 3, 2:24 pm, a...@anon.org (anon) wrote: > 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$39db0...@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 > > . @ .- Hide quoted text - > > - Show quoted text - Hi, First, I'm a female. Please don't post any more answers or such. I understand according to what you wrote that I probably did not fully understand the generics mechanism. In this case, even if you will answer my question, it will not help me because my exam starts in an hour. I posted the question here, after trying to figure things out by my self, and I had no intention to insult any one of you or to take advantage of you. In a way, I'm not worried of not passing the exam. The worse thing that can happen is that I will take the course again, and gain my knowledge from the teacher as well as from the books, because studying ADA by your self is not simple. Thanks a lot for your help. I hope that some day I will be able to join this group as an equal member and not just a student.