Proposal: Block Expressions for Java

Neal Gafter neal at
Fri Mar 6 17:08:51 PST 2009

On Fri, Mar 6, 2009 at 1:14 PM, Bob Lee <crazybob at> wrote:
> On Fri, Mar 6, 2009 at 12:58 PM, Neal Gafter <neal at> wrote:
>> The places I would have found this most useful are in a super()
>> invocation, where you simply can't write a local variable before
> Can we just lighten the restrictions on what you can do before calling
> super()? I know the VM already supports it.

Not easily.  It would require adding a whole new set of
definite-assignment-like rules to ensure that super() gets called
exactly once.  Currently, the rule is that if the first statement
isn't a super call, then super() is implicitly inserted.

More information about the coin-dev mailing list