Advertisement
Guest User

Untitled

a guest
Dec 5th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. (ns clj-test.core)
  2.  
  3. (defrecord TestRecord [foo]
  4. ;Runnable
  5. ;(run [me] nil)
  6. )
  7.  
  8. (if (clojure.lang.Namespace/areDifferentInstancesOfSameClassName (class (new TestRecord nil)) (class (new clj_test.core.TestRecord nil)))
  9. (println "Different!")
  10. (println "Same!"))
  11.  
  12. ; Run lein compile with :aot :all in project.clj and result is "Different"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement