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!news.moat.net!lon-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) References: User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X) Message-ID: Date: Fri, 24 Sep 2004 06:32:23 GMT NNTP-Posting-Host: 138.217.18.112 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1096007543 138.217.18.112 (Fri, 24 Sep 2004 16:32:23 EST) NNTP-Posting-Date: Fri, 24 Sep 2004 16:32:23 EST Organization: BigPond Internet Services Xref: g2news1.google.com comp.lang.ada:4087 Date: 2004-09-24T06:32:23+00:00 List-Id: Matthew Heaney wrote: > 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. How is this enforced? > 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)); Can you specify a type for the procedure pointer? e.g. type Proc_Ptr is access procedure (Position : in Cursor); procedure Iterate (Container : in CT; Process : not null Proc_Ptr); Dale -- dstanbro@spam.o.matic.bigpond.net.au