Created
March 26, 2011 03:35
-
-
Save anonymous/888001 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/projects/mirah ➔ mirahc --java -e "def foo(a:String); puts a; end; foo('Hello, Java')" | |
Parsing... | |
<inline script> | |
Inferring types... | |
Compiling... | |
DashE | |
Done! | |
~/projects/mirah ➔ cat DashE.java | |
// Generated from DashE | |
public class DashE extends java.lang.Object { | |
public static void main(java.lang.String[] argv) { | |
DashE.foo("Hello, Java"); | |
} | |
public static java.io.PrintStream foo(java.lang.String a) { | |
java.io.PrintStream temp$1 = java.lang.System.out; | |
temp$1.println(a); | |
return temp$1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment