[antlr-interest] Gotos in Java (was: build issues: bytecode assembly generation)

John D. Mitchell johnm-antlr at non.net
Fri Oct 22 19:27:53 PDT 2004


>>>>> "micheal" == micheal jor <open.zone at virgin.net> writes:
[...]

>> It seems curious that Java has a goto in its runtime but no way to
>> express that in the language.

> I seem to remember it has something to do with Java's secure mobile code
> aspirations.

Well, hmm... I guess you could argue that for things like no bare pointers
and non-local gotos.

The reason that regular/local gotos aren't in the Java *language* are
because they are seen as evil (from a "software engineering" perspective).

Gotos have to be in the Java Virtual Machine or it would be a bit hard to
get anything done. :-)

In terms of JVM security, there's e.g., the "bytecode verifier" which
enforces various rules on the loading of bytecodes into the JVM
implementation.

Take care,
	John


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list