[E-Lang] get, set, and dot

Tyler Close tclose@oilspace.com
Mon, 26 Feb 2001 11:30:24 -0000


Vijay wrote:
> Nested and inner classes were a significant extension to
> Java... I hope you
> use them.

Yes, I use them extensively. Anonymous inner classes are very useful
when using internal iteration, as in the Hydro library.

That said, Java's inner classes are very different from E's lexical
scoping object definition. A Java inner class is a completely new
object, with its own separate state. E's define construct only creates
a new facet on the current state. It's like a window onto the current
scope, or a new vtable for the current object state. This is not at
all what a Java inner class is. Understanding this difference is one
of the hurdles to understanding E's model of computation. E's
"shorthands" mask this difference.

Tyler