Skip to content

Instantly share code, notes, and snippets.

@woodie
Forked from ribrdb/redo.duby
Created January 13, 2010 23:20
Show Gist options
  • Save woodie/276675 to your computer and use it in GitHub Desktop.
Save woodie/276675 to your computer and use it in GitHub Desktop.
def foo(a:int[])
a.each {|x| x += 1;puts x; redo if x == 2}
end
// Generated from redo.duby
public class redo extends java.lang.Object {
public static void main(java.lang.String[] argv) {
}
public static java.lang.Object foo(int[] a) {
__xform_tmp_1 = 0;
__xform_tmp_2 = a;
label3:
while ((__xform_tmp_1 < __xform_tmp_2.length)) {
x = __xform_tmp_2[__xform_tmp_1];
boolean temp$5 = false;
label4:
do {
temp$5 = false;
x = (x + 1);
System.out.println(x);
if ((x == 2)) {
temp$5 = true;
continue label4;
}
}
while (temp$5);
__xform_tmp_1 = (__xform_tmp_1 + 1);
}
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment