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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!uunet!dca.uu.net!ash.uu.net!spool.news.uu.net!not-for-mail Date: Tue, 31 Aug 2004 16:17:12 -0400 From: Hyman Rosen User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request References: <49dc98cf.0408110556.18ae7df@posting.google.com> <1198227.gWQ0keDDOY@linux1.krischik.com> <1093956169.632925@master.nyc.kbcfp.com> <4ic2hc.1q.ln@skymaster> In-Reply-To: <4ic2hc.1q.ln@skymaster> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1093983432.462543@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1093983432 2998 204.253.250.10 Xref: g2news1.google.com comp.lang.ada:3229 Date: 2004-08-31T16:17:12-04:00 List-Id: Jean-Pierre Rosen wrote: > If I'm not mistaken, last time I looked at C++ such inner types had > local visibility, but still global scope. Not the same thing as truly > "local" classes. Correct me if I'm wrong. It's not a terribly meaningful distinction for C++. In C++ types do not have any runtime dependencies the way they can in Ada, and therefore they also do not any notion of lifetime or extent. So in that sense, all types are global. But they are local in the sense that you can declare them where you need them, like my example. > Inner classes are classes within classes (same as package inside > package, which Ada of course allows), not classes inside functions. Anonymous classes are a type of inner class, and they most certainly can be declared/created within functions. Please see this reference: .