Proposal: Block Expressions for Java (original) (raw)
Neal Gafter neal at gafter.com
Fri Mar 6 17:08:51 PST 2009
- Previous message: Proposal: Block Expressions for Java
- Next message: Proposal: Block Expressions for Java
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Mar 6, 2009 at 1:14 PM, Bob Lee <crazybob at crazybob.org> wrote:
On Fri, Mar 6, 2009 at 12:58 PM, Neal Gafter <neal at gafter.com> 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.
- Previous message: Proposal: Block Expressions for Java
- Next message: Proposal: Block Expressions for Java
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]