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,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!informatik.uni-bremen.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request Date: Wed, 1 Sep 2004 12:25:38 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <49dc98cf.0408110556.18ae7df@posting.google.com> <1198227.gWQ0keDDOY@linux1.krischik.com> <1093956169.632925@master.nyc.kbcfp.com> <4ic2hc.1q.ln@skymaster> <1093983432.462543@master.nyc.kbcfp.com> <3hs3hc.ip8.ln@skymaster> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1094041538 8020 134.91.1.34 (1 Sep 2004 12:25:38 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 1 Sep 2004 12:25:38 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:3241 Date: 2004-09-01T12:25:38+00:00 List-Id: Jean-Pierre Rosen wrote: : Hyman Rosen a ?crit : : :> Anonymous classes are a type of inner class, and they most certainly :> can be declared/created within functions. Please see this reference: :> . : Anyway, all objects are global in Java, so you cannot compare with Ada. Uhm, in the following program, how is the object created by "self.new Frob()" global? class I { private class Frob { boolean foo() { return true; } } boolean q(Frob f) { return f.foo(); } public static void main(String[] args) { I self = new I(); if (self.q(self.new Frob())) { // global? return; } } } -- Georg