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


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

Re: closures

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: closures
Date 2014-12-12 18:05 -0500
Organization A noiseless patient Spider
Message-ID <m6fsbl$i23$1@dont-email.me> (permalink)
References <closures-20141212234123@ram.dialup.fu-berlin.de>

Show all headers | 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