Compile with goto  
Author Message
iblamemicrosoft





PostPosted: 2005-1-23 8:57:00 Top

java-programmer, Compile with goto I have a problem that you may be able with java and since there is no
java catergory I have to post it here, when I try to compile java
source with the goto function, I try to compile it with javac.exe and
it doesn't work so I try to compile it with javac_g.exe and it comes
up with a funny message and still doesn't work. Is there a way to get
around this atill using the goto syntax, I'm javasdk1.5 or so...
 
Andrew Thompson





PostPosted: 2005-1-23 9:28:00 Top

java-programmer >> Compile with goto On 22 Jan 2005 16:57:19 -0800, 'Lil Laurry wrote:

> I have a problem that you may be able with java and since there is no
> java catergory I have to post it here, when I try to compile java
> source with the goto function,

<http://www.physci.org/codes/display.jsp?fl=/test/junk/goto.java>

>...I try to compile it with javac.exe and it doesn't work ..

Maybe it is just lazy. ;-) To put that another way..
[1] <http://www.physci.org/codes/javafaq.jsp#exact>

>..so I try to compile it with javac_g.exe

What the heck is *that*!?

>...and it comes up with a funny message

Does it start "Two chickens were in a bar.."? See [1]

>..and still doesn't work. Is there a way to get
> around this atill using the goto syntax,

Describing what you want to *achieve* will be a lot more helpful here.

- What does the end user start with?
- What do they (or the attribbutes/methods) do that causes 'goto'?
- What do they end up with?

>..I'm javasdk1.5 or so...

'Or so'? Please note that you will not get very far with learning
any programming language unless you can become specific and precise.
Especially when seeking technical solutions on multi-national forums
where the folks who generally answer questions are already hard pressed
to answer all the questions that are posted.

For a more specific answer to that question, you can use the
JTest application. You can see it on the internet here..
<http://www.physci.org/pc/property.jsp?prop=java.version+java.vendor>
That page also links to the application itself, which is here..
<http://www.physci.org/pc/JTest.jar>

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
 
Chris Smith





PostPosted: 2005-1-23 10:22:00 Top

java-programmer >> Compile with goto 'Lil Laurry <email***@***.com> wrote:
> I have a problem that you may be able with java and since there is no
> java catergory I have to post it here, when I try to compile java
> source with the goto function, I try to compile it with javac.exe and
> it doesn't work so I try to compile it with javac_g.exe and it comes
> up with a funny message and still doesn't work. Is there a way to get
> around this atill using the goto syntax, I'm javasdk1.5 or so...

There is no such thing as a goto syntax in Java. In Java, goto is a
reserved word that cannot be used and has no defined meaning. If your
ultimate goal is to use goto, then you need some language besides Java.
Examples of languages with goto statements include: C, C++, and all
known variants of BASIC.

If you have some other purpose and think that you need to use goto, then
perhaps we can help you here. Please explain what you're trying to
achieve. Language constructs that might be interesting (and that,
unlike goto, actually exist) include: boolean variables and if
statements, break and continue (possibly with labels), or exception
handling.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation