Feature request: goto

View: New views
2 Messages — Rating Filter:   Alert me  

Feature request: goto

by John Cowan-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'd like to use Janino rather than generating bytecodes
directly; however, by using bytecodes, I can generate
gotos.  If Janino added goto support in the syntax, I
could generate Java instead.

Any hope of that?

--
GMail doesn't have rotating .sigs, but you can see mine at
http://www.ccil.org/~cowan/signatures

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Feature request: goto

by Arno Unkrig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi John,

have you looked at Java's "labeled break" construct?

http://java.sun.com/docs/books/jls/third_edition/html/statements.html#6842

That should do perfectly as a forward GOTO.

If not, feel free to file a feature request on jira.codehaus.org.


CU

Arno

John Cowan schrieb:
> I'd like to use Janino rather than generating bytecodes
> directly; however, by using bytecodes, I can generate
> gotos.  If Janino added goto support in the syntax, I
> could generate Java instead.
>
> Any hope of that?
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email