Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?ISO-8859-1?Q?Sven_K=F6hler?= Newsgroups: comp.lang.java.programmer Subject: Re: A small exercise Date: Sat, 27 Apr 2013 22:28:59 +0300 Lines: 16 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de bl/C8waYz00LmaCBNsuU5Adz7uHzFO2YJpq13Z/oQmidTTUHWRTXlwzLjz Cancel-Lock: sha1:rRY71c7oUHX5u3U+iJI1h59K1Jc= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:23670 Am 20.04.2013 19:02, schrieb lipska the kat: > I think that logically, Main.this.b refers to the enclosing *instance* > which implies that the class has been instantiated "this" also refers to an instance - doesn't it? And following your argument, I should not be able to use "this" in the constructor. I'm not saying, that the JLS makes a different between a mere "this" and a construct of the form "Classname.this" and that this is essentially the cause for the code not compiling. But I don't see the point of your argument. Regards, Sven