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!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Troll -- Markus E L Reply-To: anon@anon.org (anon) References: <1188809249.040351.100160@r29g2000hsg.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Wed, 05 Sep 2007 03:49:35 GMT NNTP-Posting-Host: 12.64.204.164 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1188964175 12.64.204.164 (Wed, 05 Sep 2007 03:49:35 GMT) NNTP-Posting-Date: Wed, 05 Sep 2007 03:49:35 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:1743 Date: 2007-09-05T03:49:35+00:00 List-Id: Move On son! Move On! No one cares what you say any more! In , Markus E L writes: > >'anon AT anon DOT org (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 ; >> >> begin -- function_0 >> tst ; >> return Data * 2.0 ; >> end function_0 ; >> >> >> -- ---------- -- >> -- Test: Proc -- >> -- ---------- -- >> >> procedure test is >> begin -- test >> Ada.Text_IO.Put_Line ( "Testing" ) ; >> end test ; >> >> >> Result : Float ; >> >> begin >> Result := function_0 ( test'address, 0.5 ) ; >> end zzero ; > >Wow, thanks. That clearly illustrates what I've been secretly >suspecting for some time: That 'anon@anon.org', the great and only >with suuuuuch a long history in Ada and whatever, has no, absolutely >no clue about Ada. I notice with joy that the keyword 'generic' is >completely absent from your "solution" and the thing called 'func' is >a System.Address. Looks like something a (bad) C programmer might have >conceived after missing to read the introductory Ada material (e.g. a >decent book or the ARM, which is astonishingly readable). > >Regards -- Markus > >> >> >> In <1188809249.040351.100160@r29g2000hsg.googlegroups.com>, shoshanister@gmail.com writes: >>>I need your urgent help, I have an exam soon, and I still cant figure >>>this out: >>>I want to create a generic function that receives a generic procedure >>>(without any parameters) as a parameter. >>> >>>Do you have any ideas? >>>Thanks a lot. >>>R >>>