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!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 30 Nov 2010 13:37:40 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Callback in Ada References: <8lc2d0Fb6jU1@mid.individual.net> <4cf0ec67$0$6882$9b4e6d93@newsspool2.arcor-online.net> <393221c0-ac56-436f-b3f8-280c40d5a53a@j1g2000vbl.googlegroups.com> <10p6vzd761rdz$.1gtmc0fk6t9rb.dlg@40tude.net> <0deb178c-ecac-4560-8bae-a904432046ee@n2g2000pre.googlegroups.com> In-Reply-To: <0deb178c-ecac-4560-8bae-a904432046ee@n2g2000pre.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4cf4f014$0$6977$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 30 Nov 2010 13:37:41 CET NNTP-Posting-Host: 006e6398.newsspool4.arcor-online.net X-Trace: DXC=?2@8m]o=O;H74okIm;?DS@4IUKJLh>_cHTX3jMgnWM6H?GWRO X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:16681 Date: 2010-11-30T13:37:41+01:00 List-Id: On 30.11.10 10:14, AdaMagica wrote: >> No problem here, just use an expression function to give your expression a >> name (and parameters); then you can use 'Access just fine. Forget anonymous >> stuff, it only leads to heartache. :-) >> >> function Foobar (A : Integer) return Integer is (if A > 10 then A - 5 >> else A); > > Which AI is this? I can't find this syntax in RM 2012 Draft 10. http://www.ada-auth.org/cgi-bin/cvsweb.cgi/ai05s/ai05-0177-1.txt?rev=1.5 (found via the Schonberg presentation notes). Question about the Ada-auth.org search programs: search-acaa.cgi: The results for "expression function" differ from those for "expression functions" and AI 177 doesn't turn up using the former parameter. search-ai05s.cgi Results differ, but AI 177 turns up (not a surprise, I should think). Q: Is it worth while adding singular or plural forms automatically? Will doing so do any serious harm? Copying the ubiquituous "+" operator convention (indicating "as written, please!") can turn this off, again. (Word lists and algorithms are available in the free Unix spelling libraries.) http://www.ada-auth.org/search-acaa.cgi?SearchA=%22expression+functions%22&SearchO=&SearchN= http://www.ada-auth.org/search-ai05s.cgi?SearchA=%22expression+functions%22&SearchO=&SearchN=