Last active
January 16, 2016 19:43
-
-
Save noisesmith/265d375137b842d055dd to your computer and use it in GitHub Desktop.
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
(ns a.b) | |
(defrecord Foo [bar]) |
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
(ns a.c | |
(:require a.b) | |
(:import a.b.Foo)) | |
(def f (Foo. :a)) | |
(defn -main [& args] | |
(println (.bar f))) |
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
$ java -cp ~/bin/clojure.jar:. clojure.main -m a.c | |
:a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment