 |
Author |
Topic: what does "...statement is unreachable" mean? (Read 474 times) |
|
sspboyd
|
what does "...statement is unreachable" mean?
« on: Jul 20th, 2004, 9:11pm » |
|
I just got an error I don't think I've seen before. Code:Semantic Error: This statement is unreachable. |
| What does that mean? thanks steve +-+-+-+-+ wait, I figured it out. i was trying to do a println() after a return statement. I assume the error means you can't try to execute statements after a return. makes sense.
|
« Last Edit: Jul 20th, 2004, 9:13pm by sspboyd » |
|
gmail.com w/ sspboyd username
|
|
|
Andre_Michelle
|
Re: what does "...statement is unreachable" mean?
« Reply #1 on: Jul 30th, 2004, 9:54pm » |
|
It means, what it means ) Code: void setup() { return; int var = 0; } |
| is unreachable. I'm sorry about that, cause I often use this in flash to switch off a method...
|
|
|
|
narain
|
Re: what does "...statement is unreachable" mean?
« Reply #2 on: Jul 31st, 2004, 5:00am » |
|
"I often use this in flash to switch off a method" You can always just comment out the whole thing in Java... Code:void setup () { /* <-- start of block comment int var = 0; */ <-- end of block comment } |
|
|
« Last Edit: Jul 31st, 2004, 5:01am by narain » |
|
|
|
|
|