Skip to content

Instantly share code, notes, and snippets.

@fregmented
Created November 3, 2016 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fregmented/e8724c57729273752322d043925017c4 to your computer and use it in GitHub Desktop.
Save fregmented/e8724c57729273752322d043925017c4 to your computer and use it in GitHub Desktop.
source
```
switch(integerA){
case 0:
method1();
case 1:
method2();
break;
default:
method3();
}
print("blah");
```
compiled
```
if(integerA == 0) gotoLine(17);
else if(integerA == 1) gotoLine(18);
else gotoLine(20);
method1();
method2();
gotoLine(21);
method3();
print("blah");
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment