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,de7dd126d6737f3a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!news.musoftware.de!wum.musoftware.de!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Callback in Ada Date: Sat, 27 Nov 2010 14:11:36 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <8lc2d0Fb6jU1@mid.individual.net> <4cf0ec67$0$6882$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: d3a0be7c704dbfd45a9b624d41b95803 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 56b63f765f73974b713b4758c18b2a49 X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <4cf0ec67$0$6882$9b4e6d93@newsspool2.arcor-online.net> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=56b63f765f73974b713b4758c18b2a49 X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news2.google.com comp.lang.ada:16652 Date: 2010-11-27T14:11:36-07:00 List-Id: On 11/27/2010 04:32 AM, Georg Bauhaus wrote: > > 2. Function pointers > > type To_Be_Applied is access function ( ... ); > (Or the Ada 2005 anonymous variant if you really need to > avoid names.) While anonymous access types in current Ada seem designed to allow the developer to avoid creating type names and to adopt a C-like coding style, in the case of access-to-subprogram, the anonymous form has an advantage over named types: they allow passing access to a local subprogram ("downward funargs") without any of the accessibility checks or worries that accompany named types. I can't say I'm a fan of the syntax, but that's a useful capability. -- Jeff Carter "There's no messiah here. There's a mess all right, but no messiah." Monty Python's Life of Brian 84