Proposal: Block Expressions for Java
Howard Lovatt
howard.lovatt at iee.org
Sat Mar 14 02:58:02 PDT 2009
I am with Stephen Colebourne on this one - unfortunately against.
You can achieve the same using blocks for locals, init blocks for instance
fields, static init blocks for static fields, and for many super calls a
call to a static method can be made. The least desirable of these is for
super, a better solution is to allow statements before super. These are more
powerful, for example initialising a field with an argument to the
constructor (e.g. the outer pointer for an inner class). VM alreadty allows
statements before the super.
Sorry, but I am against this.
More information about the coin-dev
mailing list