Re: Import other .clj files

2011-05-16 Thread Jonathan Fischer Friberg
Putting (ns test) in both files means that the content of the files are in the same namespace, this is essentially the same as putting everything in the same file. To be able to access something from the other file you need to "require", or "use" the other namespace. If you want to access the cont

Re: Import other .clj files

2011-05-15 Thread MohanR
As mentioned in my previous question I didn't use (ns test.test1) but only (ns test) and it worked. (ns test.test1) throws java.lang.Exception: Unable to resolve symbol when I call a method in the other .clj file Thanks, Mohan -- You received this message because you are subscribed to the G

Re: Import other .clj files

2011-05-13 Thread Jonathan Fischer Friberg
With the structure: test - test1.clj - test2.clj then test1.clj should start with (ns test.test1) and test2.clj should start with (ns test.test2) Jonathan On Fri, May 13, 2011 at 9:15 AM, MohanR wrote: > It is solved but the rules are not clear. > > If I have (ns test) in both .clj files and t

Re: Import other .clj files

2011-05-13 Thread MohanR
It is solved but the rules are not clear. If I have (ns test) in both .clj files and the files are in /test then I am able to call one from the other. I am not specifically pointing my classpath to /test at all. What is the link between classpath, ns and the folder structure ? Thanks, Mohan --

Re: Import other .clj files

2011-05-12 Thread MohanR
I am able to set the swank-clojure-classpath and also verify it using C-h v. It has the current directory "." and also other directories where .clj files are located If a .clj file has a namespace I ensure the classpath points to the root of the namespace folder structure like I do with Java. Wh