Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #30555

Re: closures

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 <esosman@comcast-dot-net.invalid>
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 <m6fsbl$i23$1@dont-email.me> (permalink)
References <closures-20141212234123@ram.dialup.fu-berlin.de>
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 <closures-20141212234123@ram.dialup.fu-berlin.de>
Cancel-Lock sha1:453EQfE5CvpbSBACEqYlJM1zK0g=
Xref csiph.com comp.lang.java.programmer:30555

Show key headers only | View raw


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

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: closures Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-12-12 18:05 -0500
  Re: closures Brixomatic <brixomatic@yahoo.com> - 2014-12-13 08:53 +0100

csiph-web