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,4ce0ea7d497db907,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!w9g2000yqa.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: anonymous access type Date: Tue, 3 Mar 2009 04:25:59 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 137.138.182.236 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1236083159 14231 127.0.0.1 (3 Mar 2009 12:25:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 3 Mar 2009 12:25:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w9g2000yqa.googlegroups.com; posting-host=137.138.182.236; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:3890 Date: 2009-03-03T04:25:59-08:00 List-Id: Hi, Consider a simple callback protocol: procedure Call (Process : not null access procedure); This is widely used for example in the containers library (Iterate operation). Now, being a good citizen, I would like to explicitly stress that the parameter is passed 'in' instead of relying on implicit mode, so let's add the 'in' keyword where it belongs: procedure Call (Process : in not null access procedure); GNAT says: "anonymous access type definition not allowed here". I cannot find anything in the standard that would explain this. Any references are welcome. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com Database Access Library for Ada: www.inspirel.com/soci-ada