Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Languages with GOTO

Name: suomynonA 2007-07-17 12:49 ID:sJhm9IHJ

Is there a modern programming language which has GOTO function in it? I know basic from a millenia ago and recently learned java, and well I hated OOP, but I could live with it if I had goto.

Name: Anonymous 2007-07-19 14:13 ID:84V+rEu/

>>26
you mean this, yes?

int a(void){
int failed=do_something();
if(failed){
 do_some_shit();
 do_more_shit();
}
return 0;
}

int b(void){
int failed=do_something();
if(failed){
 do_some_shit();
 do_more_shit();
}
return 1;
}

int b(void){
int failed=do_something();
if(failed){
 do_some_shit();
 do_more_shit();
}
return 2;
}

great solution, really.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List