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,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: mheaney@MHEANEYX200 Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) References: From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 24 Sep 2004 01:57:42 GMT NNTP-Posting-Host: 64.185.133.124 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1095991062 64.185.133.124 (Thu, 23 Sep 2004 18:57:42 PDT) NNTP-Posting-Date: Thu, 23 Sep 2004 18:57:42 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:4076 Date: 2004-09-24T01:57:42+00:00 List-Id: Dale Stanbrough writes: > Talking about removing restrictions - will Ada 2005 allow for downward > closures (I read that the one reason for it's exclusion was a compiler > which is no longer with us). Yes. The only caveat is that the procedure pointer cannot be copied. AI-302 depends on this new feature. For example, the passive iterator looks like this: procedure Iterate (Container : in CT; Process : not null access procedure (Position : in Cursor)); There are procedures for querying and modifying the element at a position, that look like this: procedure Query_Element (Position : in Cursor; Process : not null access procedure (Element : in Element_Type)); procedure Update_Element (Position : in Cursor; Process : not null access procedure (Element : in out Element_Type)); -Matt