On 07.03.2016 14:16, Jesper Steen Møller wrote:
[...]
If you make a static inner subclass of the non-static inner class, the
constructor must specify the outer instance.

of course...! Haven't thought about that one... I guess we miss that in Groovy then... not sure though we need it, or if it is really good design to do that... probably a no to both.

* ./benchmark/bench/heapsort.groovy uses access modfiers on the
  script’s local variables — that’s not really allowed, is it? How
  should that work? It can’t get it to work in Groovy 2.4.x

You mean like "public static final long IM = 139968"? It does not
really make a semantic sense to allow this. For convenient copy&paste
this could be allowed... if it poses no problem, I think it would be
nice to have. But it is not really required

But what should it mean? Should it become fields in the Script class, or
just be stripped of access and staticness and introduced as locals in
the main() ?

yes


So - “Yes” to which side of the disjunction? Member or local?

sorry... ;) local variables. That's what you get without the modifiers and we have not decided to do anything different through a modifier here - afaik.

bye Jochen

Reply via email to