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,5bbcbfbb228d6549 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.germany.com!news.motzarella.org!motzarella.org!not-for-mail From: =?ISO-8859-1?Q?S=E9bastien?= Newsgroups: comp.lang.ada Subject: Re: Ada.Containers.Vectors Update_Element issue Date: Wed, 14 May 2008 18:21:30 +0000 Organization: A noiseless patient Spider Message-ID: <482B2DAA.1060009@gmail.com> References: <4bb8bb12-225b-4790-bd12-40ef0b0adeaf@s33g2000pri.googlegroups.com> <482AFEAC.3040306@gmail.com> <8d5f96c4-9a65-4e99-bc1b-a281a547e213@l28g2000prd.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: feeder.motzarella.org U2FsdGVkX1/mAeB4Upc/tHEeGuRX1RGOVQ4SVDihergzMCNH05P6GGgv5QPb3YIBbqU7mD7e4cczYP+R/DPP5Qf/OzV+f7pgougHAvE2TZz09p4f2/Xvwj5RWh3pVS8LYXIYqdAGnw15kIXGltNbmQ== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Wed, 14 May 2008 18:20:47 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX1999tVY15N8vJSPObb7iu8AaywFj/befPpCvtwNWwyhpA== Cancel-Lock: sha1:G8D3RxAwk3YGNc79NCI+zmmXlSE= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) Xref: g2news1.google.com comp.lang.ada:61 Date: 2008-05-14T18:21:30+00:00 List-Id: > You can still do this in Ada 2005, but if you do, you would only be > allowed to pass Proc'Access as a parameter if Proc was a *global* > procedure (not nested inside any other procedure). The reason is that > Update_Element could save Process in some global variable. Sometimes > that's what you want---you want to be able to save a procedure access > and use it later. But in the actual declaration, the Process > parameter is of an anonymous access type, which means that you can > pass an 'Access of any procedure, no matter how nested it is, but > Update_Element can't save the procedure access in a variable > anywhere. Hope that explains things. -- Adam Yes thank you very much, I got it. Sebastien