Skip to content

Instantly share code, notes, and snippets.

@YellowAfterlife
Created November 28, 2014 15:26
Show Gist options
  • Save YellowAfterlife/35d32fbe121331add90a to your computer and use it in GitHub Desktop.
Save YellowAfterlife/35d32fbe121331add90a to your computer and use it in GitHub Desktop.
public static function run() {
for (i in 0 ... 5) {
switch (i) {
case 3: switch (i) {
case 3: break;
}
}
trace(i);
}
}
// ->
var _g = 0;
while (_g < 5) {
var i = _g++;
var __breaks = 0;
switch (i) {
case 3: switch (i) {
case 3: __breaks = 2; break;
}
if (__breaks > 0) { __breaks--; break; };
}
if (__breaks > 0) { __breaks--; break; };
trace(i);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment