Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: closures Date: Fri, 12 Dec 2014 18:05:39 -0500 Organization: A noiseless patient Spider Lines: 13 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 12 Dec 2014 23:05:25 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="bd4e1cba8d8592bec5d5ed9e4537fbfd"; logging-data="18499"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18J0cjf76yUitdiYFU1pajO" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: Cancel-Lock: sha1:453EQfE5CvpbSBACEqYlJM1zK0g= Xref: csiph.com comp.lang.java.programmer:30555 On 12/12/2014 5:51 PM, Stefan Ram wrote: > flabbergasted > > Today, I wanted to show to the students that inner classes cannot > modify fields of outer classes. [...] There's no such prohibition, and I don't think there ever has been. Perhaps you're confusing "fields of outer classes" with "local variables of enclosing methods?" -- esosman@comcast-dot-net.invalid "Don't be afraid of work. Make work afraid of you." -- TLM