I'm having trouble writing code in one namespace that instantiates a type that is defined in another namespace.
I have two source files: other.clj defines a function called my-fn and a type called huss: (ns my-project.other) (defrecord huss [x y z]) (defn my-fn [] (println "my-fn")) core.clj can successfully call my-fn from the other file but I try to instantiate huss and I get an ClassNotFoundException (ns my-project.core (:use [my-project.other])) (my-fn) ; doesn't work... gives java.lang.IllegalArgumentException: Unable to resolve classname: huss (println (huss. 1 2 3)) What's the reason for this? Is it intended to work like this and what can I do in order to define a type in one source file (and namespace) and use it in another? Cheers, Chris -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en