On 10/20/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote:
> So, what about a new type of exception-like feature: Jump
>
> public class Jump {}
>
> public class NonLocalReturn < Jump {
>    Object returnValue;
> }
>
> Jumps would not be catchable as either errors or throwables, though they
> would still trigger finally blocks. Because they'd be a new class of
> exception-like feature, no existing code would be incorrectly trying to
> catch them. And they're explicitly stated to be used for these sorts of
> "jump" events.
This sounds like a great idea.  It uses existing structures in a new
way that could then be optimized for the needs of non-java languages
at the VM level.  I can't see a downside.

-Frank

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to