Skip to content

Instantly share code, notes, and snippets.

@noisesmith
Last active January 16, 2016 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noisesmith/265d375137b842d055dd to your computer and use it in GitHub Desktop.
Save noisesmith/265d375137b842d055dd to your computer and use it in GitHub Desktop.
(ns a.b)
(defrecord Foo [bar])
(ns a.c
(:require a.b)
(:import a.b.Foo))
(def f (Foo. :a))
(defn -main [& args]
(println (.bar f)))
$ 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